diff options
author | stoffu <stoffu@protonmail.ch> | 2018-07-23 23:45:11 +0900 |
---|---|---|
committer | stoffu <stoffu@protonmail.ch> | 2018-07-31 21:36:12 +0900 |
commit | 1c6cfd34f4ad5939ebeb29a9776faf2f29c8b04f (patch) | |
tree | b7c3f8598f2f975b1deb98ef3288f4ec16f5d681 /src/wallet/wallet_rpc_server_commands_defs.h | |
parent | Merge pull request #4088 (diff) | |
download | monero-1c6cfd34f4ad5939ebeb29a9776faf2f29c8b04f.tar.xz |
wallet-rpc: add get_address_index command
Diffstat (limited to 'src/wallet/wallet_rpc_server_commands_defs.h')
-rw-r--r-- | src/wallet/wallet_rpc_server_commands_defs.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/wallet/wallet_rpc_server_commands_defs.h b/src/wallet/wallet_rpc_server_commands_defs.h index 1bd572add..de92b22cf 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 1 +#define WALLET_RPC_VERSION_MINOR 2 #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 @@ -141,6 +141,25 @@ namespace wallet_rpc }; }; + struct COMMAND_RPC_GET_ADDRESS_INDEX + { + struct request + { + std::string address; + BEGIN_KV_SERIALIZE_MAP() + KV_SERIALIZE(address) + END_KV_SERIALIZE_MAP() + }; + + struct response + { + cryptonote::subaddress_index index; + BEGIN_KV_SERIALIZE_MAP() + KV_SERIALIZE(index) + END_KV_SERIALIZE_MAP() + }; + }; + struct COMMAND_RPC_CREATE_ADDRESS { struct request |