diff options
author | stoffu <stoffu@protonmail.ch> | 2019-02-18 11:59:14 +0900 |
---|---|---|
committer | stoffu <stoffu@protonmail.ch> | 2019-02-20 14:23:36 +0900 |
commit | 3d2772a0d62e858997af5d42efbdc42db4ecbed2 (patch) | |
tree | b304686e9d96b21a1327b1efde34bd6362c7f685 /src/wallet/wallet_rpc_server_commands_defs.h | |
parent | Merge pull request #4988 (diff) | |
download | monero-3d2772a0d62e858997af5d42efbdc42db4ecbed2.tar.xz |
wallet-rpc: get balance for all accounts and subaddresses
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet_rpc_server_commands_defs.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wallet/wallet_rpc_server_commands_defs.h b/src/wallet/wallet_rpc_server_commands_defs.h index f0c1a4e9d..324856d44 100644 --- a/src/wallet/wallet_rpc_server_commands_defs.h +++ b/src/wallet/wallet_rpc_server_commands_defs.h @@ -47,7 +47,7 @@ // advance which version they will stop working with // Don't go over 32767 for any of these #define WALLET_RPC_VERSION_MAJOR 1 -#define WALLET_RPC_VERSION_MINOR 7 +#define WALLET_RPC_VERSION_MINOR 8 #define MAKE_WALLET_RPC_VERSION(major,minor) (((major)<<16)|(minor)) #define WALLET_RPC_VERSION MAKE_WALLET_RPC_VERSION(WALLET_RPC_VERSION_MAJOR, WALLET_RPC_VERSION_MINOR) namespace tools @@ -63,14 +63,17 @@ namespace wallet_rpc { uint32_t account_index; std::set<uint32_t> address_indices; + bool all_accounts; BEGIN_KV_SERIALIZE_MAP() KV_SERIALIZE(account_index) KV_SERIALIZE(address_indices) + KV_SERIALIZE_OPT(all_accounts, false); END_KV_SERIALIZE_MAP() }; struct per_subaddress_info { + uint32_t account_index; uint32_t address_index; std::string address; uint64_t balance; @@ -79,6 +82,7 @@ namespace wallet_rpc uint64_t num_unspent_outputs; BEGIN_KV_SERIALIZE_MAP() + KV_SERIALIZE(account_index) KV_SERIALIZE(address_index) KV_SERIALIZE(address) KV_SERIALIZE(balance) |