diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-05-02 11:04:43 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-09-17 11:38:24 +0000 |
commit | f2e811fcedd8ba3d9195f75f13cb816c2e8ecb1f (patch) | |
tree | f24db27804842b100c90c75a46d361f676f5b97f /utils/python-rpc/framework/wallet.py | |
parent | functional_tests: add monero: URI tests (diff) | |
download | monero-f2e811fcedd8ba3d9195f75f13cb816c2e8ecb1f.tar.xz |
functional_tests: add rescan_spent/rescan_blockchain tests
Diffstat (limited to '')
-rw-r--r-- | utils/python-rpc/framework/wallet.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py index 741569858..4065af892 100644 --- a/utils/python-rpc/framework/wallet.py +++ b/utils/python-rpc/framework/wallet.py @@ -890,6 +890,27 @@ class Wallet(object): } return self.rpc.send_json_rpc_request(set_account_tag_description) + def rescan_blockchain(self, hard = False): + rescan_blockchain = { + 'method': 'rescan_blockchain', + 'jsonrpc': '2.0', + 'params': { + 'hard': hard, + }, + 'id': '0' + } + return self.rpc.send_json_rpc_request(rescan_blockchain) + + def rescan_spent(self): + rescan_spent = { + 'method': 'rescan_spent', + 'jsonrpc': '2.0', + 'params': { + }, + 'id': '0' + } + return self.rpc.send_json_rpc_request(rescan_spent) + def make_uri(self, address = '', payment_id = '', amount = 0, tx_description = '', recipient_name = ''): make_uri = { 'method': 'make_uri', |