mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 16:27:39 +00:00
wallet_rpc_server: add unlocked field to incoming_transfers output
This commit is contained in:
parent
7973fb6a69
commit
84047cb729
2 changed files with 4 additions and 1 deletions
|
@ -1850,6 +1850,7 @@ namespace tools
|
|||
rpc_transfers.tx_hash = epee::string_tools::pod_to_hex(td.m_txid);
|
||||
rpc_transfers.subaddr_index = {td.m_subaddr_index.major, td.m_subaddr_index.minor};
|
||||
rpc_transfers.key_image = td.m_key_image_known ? epee::string_tools::pod_to_hex(td.m_key_image) : "";
|
||||
rpc_transfers.unlocked = m_wallet->is_transfer_unlocked(td);
|
||||
res.transfers.push_back(rpc_transfers);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 11
|
||||
#define WALLET_RPC_VERSION_MINOR 12
|
||||
#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
|
||||
|
@ -982,6 +982,7 @@ namespace wallet_rpc
|
|||
std::string tx_hash;
|
||||
cryptonote::subaddress_index subaddr_index;
|
||||
std::string key_image;
|
||||
bool unlocked;
|
||||
|
||||
BEGIN_KV_SERIALIZE_MAP()
|
||||
KV_SERIALIZE(amount)
|
||||
|
@ -990,6 +991,7 @@ namespace wallet_rpc
|
|||
KV_SERIALIZE(tx_hash)
|
||||
KV_SERIALIZE(subaddr_index)
|
||||
KV_SERIALIZE(key_image)
|
||||
KV_SERIALIZE(unlocked)
|
||||
END_KV_SERIALIZE_MAP()
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue