diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-06-25 17:03:50 +0100 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-09-09 00:51:31 +0100 |
commit | bdd6a4fd5da44c2575be9195ecb4213a13e74511 (patch) | |
tree | 98e96b83962f851c9c745142866aff7ebf425f74 /test/functional | |
parent | fc0c410d6e19dd8e3abbc9b0fc13c836e6678750 (diff) | |
download | bitcoin-bdd6a4fd5da44c2575be9195ecb4213a13e74511.tar.xz |
qa: Check scantxoutset result against gettxoutsetinfo
Diffstat (limited to 'test/functional')
-rwxr-xr-x | test/functional/rpc_scantxoutset.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/rpc_scantxoutset.py b/test/functional/rpc_scantxoutset.py index a1cd33ad54..9f94d11a93 100755 --- a/test/functional/rpc_scantxoutset.py +++ b/test/functional/rpc_scantxoutset.py @@ -58,6 +58,13 @@ class ScantxoutsetTest(BitcoinTestFramework): self.start_node(0) self.nodes[0].generate(110) + scan = self.nodes[0].scantxoutset("start", []) + info = self.nodes[0].gettxoutsetinfo() + assert_equal(scan['success'], True) + assert_equal(scan['height'], info['height']) + assert_equal(scan['txouts'], info['txouts']) + assert_equal(scan['bestblock'], info['bestblock']) + self.restart_node(0, ['-nowallet']) self.log.info("Test if we have found the non HD unspent outputs.") assert_equal(self.nodes[0].scantxoutset("start", [ "pkh(" + pubk1 + ")", "pkh(" + pubk2 + ")", "pkh(" + pubk3 + ")"])['total_amount'], Decimal("0.002")) |