From e79f77f0a68bf08f4cb79993dcd84d6a7905ea3f Mon Sep 17 00:00:00 2001 From: Some Random Crypto Guy Date: Tue, 18 Mar 2025 09:58:46 +0000 Subject: [PATCH] patches working --- patches/salvium/0005-UR-functions.patch | 4 ++-- patches/salvium/0008-coin-control.patch | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/salvium/0005-UR-functions.patch b/patches/salvium/0005-UR-functions.patch index 6fbf271..fd8f86d 100644 --- a/patches/salvium/0005-UR-functions.patch +++ b/patches/salvium/0005-UR-functions.patch @@ -660,7 +660,7 @@ index e349df176..764adbfbf 100644 result += unlockedBalance(asset, i); return result; } -+ virtual uint64_t viewOnlyBalance(uint32_t accountIndex, const std::vector &key_images = {}) const = 0; ++ virtual uint64_t viewOnlyBalance(uint32_t accountIndex, const std::vector &key_images = {}, const std::string& asset = "SAL1") const = 0; /** * @brief watchOnly - checks if wallet is watch only @@ -965,7 +965,7 @@ index daad1e940..a752f15b9 100644 // locked & unlocked balance of given or current subaddress account uint64_t balance(uint32_t subaddr_index_major, const std::string& asset_type, bool strict) const; uint64_t unlocked_balance(uint32_t subaddr_index_major, const std::string& asset_type, bool strict, uint64_t *blocks_to_unlock = NULL, uint64_t *time_to_unlock = NULL); -+ uint64_t view_only_balance(uint32_t index_major, const std::vector& selected_inputs = {}); ++ uint64_t view_only_balance(uint32_t index_major, const std::vector& selected_inputs = {}, const std::string& asset_type = "SAL1"); // locked & unlocked balance per subaddress of given or current subaddress account std::map balance_per_subaddress(uint32_t subaddr_index_major, const std::string& asset_type, bool strict) const; std::map>> unlocked_balance_per_subaddress(uint32_t subaddr_index_major, const std::string& asset_type, bool strict); diff --git a/patches/salvium/0008-coin-control.patch b/patches/salvium/0008-coin-control.patch index f7902f8..3d3e396 100644 --- a/patches/salvium/0008-coin-control.patch +++ b/patches/salvium/0008-coin-control.patch @@ -453,7 +453,7 @@ new file mode 100644 index 000000000..c43e45abd --- /dev/null +++ b/src/wallet/api/coins_info.h -@@ -0,3 +1,74 @@ +@@ -0,0 +1,71 @@ +#ifndef FEATHER_COINS_INFO_H +#define FEATHER_COINS_INFO_H +