aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server_commands_defs.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-04-27 23:43:39 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-04-27 23:43:39 +0100
commit09dddf281a55e918d1d5afa3a184779570538d7e (patch)
tree464171665dd35b332fe8680a96140a3599196107 /src/wallet/wallet_rpc_server_commands_defs.h
parentMerge pull request #823 (diff)
downloadmonero-09dddf281a55e918d1d5afa3a184779570538d7e.tar.xz
wallet: add a filter_by_height field to get_transfers
It allows a simple get_transfers (with default 0 min_height and max_height) to return all transactions, instead of the unexpected set of txes in block 0, which is probably none at all.
Diffstat (limited to 'src/wallet/wallet_rpc_server_commands_defs.h')
-rw-r--r--src/wallet/wallet_rpc_server_commands_defs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server_commands_defs.h b/src/wallet/wallet_rpc_server_commands_defs.h
index 9fe85dfc1..f8c04c007 100644
--- a/src/wallet/wallet_rpc_server_commands_defs.h
+++ b/src/wallet/wallet_rpc_server_commands_defs.h
@@ -496,6 +496,8 @@ namespace wallet_rpc
bool out;
bool pending;
bool failed;
+
+ bool filter_by_height;
uint64_t min_height;
uint64_t max_height;
@@ -504,6 +506,7 @@ namespace wallet_rpc
KV_SERIALIZE(out);
KV_SERIALIZE(pending);
KV_SERIALIZE(failed);
+ KV_SERIALIZE(filter_by_height);
KV_SERIALIZE(min_height);
KV_SERIALIZE(max_height);
END_KV_SERIALIZE_MAP()