Skip to content

Commit bdd6a4f

Browse files
committed
qa: Check scantxoutset result against gettxoutsetinfo
1 parent fc0c410 commit bdd6a4f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/functional/rpc_scantxoutset.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ def run_test(self):
5858
self.start_node(0)
5959
self.nodes[0].generate(110)
6060

61+
scan = self.nodes[0].scantxoutset("start", [])
62+
info = self.nodes[0].gettxoutsetinfo()
63+
assert_equal(scan['success'], True)
64+
assert_equal(scan['height'], info['height'])
65+
assert_equal(scan['txouts'], info['txouts'])
66+
assert_equal(scan['bestblock'], info['bestblock'])
67+
6168
self.restart_node(0, ['-nowallet'])
6269
self.log.info("Test if we have found the non HD unspent outputs.")
6370
assert_equal(self.nodes[0].scantxoutset("start", [ "pkh(" + pubk1 + ")", "pkh(" + pubk2 + ")", "pkh(" + pubk3 + ")"])['total_amount'], Decimal("0.002"))

0 commit comments

Comments
 (0)