aboutsummaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorPatrick Lodder <[email protected]>2020-07-22 12:48:40 +0200
committerPatrick Lodder <[email protected]>2020-07-22 13:51:00 +0200
commite3d075f71071d2681e3b3d792ff7b7c5583b30a9 (patch)
tree6f657f950c3af94f371d53260ac2692ab2b9b1d8 /qa
parentrpc-tests: fix mempool_limit test (diff)
downloaddiscoin-e3d075f71071d2681e3b3d792ff7b7c5583b30a9.tar.xz
discoin-e3d075f71071d2681e3b3d792ff7b7c5583b30a9.zip
rpc-tests: fix listtransactions to not spend dust
Diffstat (limited to 'qa')
-rwxr-xr-xqa/rpc-tests/listtransactions.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/qa/rpc-tests/listtransactions.py b/qa/rpc-tests/listtransactions.py
index 83ac72505..2eda29ce9 100755
--- a/qa/rpc-tests/listtransactions.py
+++ b/qa/rpc-tests/listtransactions.py
@@ -90,12 +90,12 @@ class ListTransactionsTest(BitcoinTestFramework):
multisig = self.nodes[1].createmultisig(1, [self.nodes[1].getnewaddress()])
self.nodes[0].importaddress(multisig["redeemScript"], "watchonly", False, True)
- txid = self.nodes[1].sendtoaddress(multisig["address"], 0.1)
+ txid = self.nodes[1].sendtoaddress(multisig["address"], 1)
self.nodes[1].generate(1)
self.sync_all()
assert(len(self.nodes[0].listtransactions("watchonly", 100, 0, False)) == 0)
assert_array_result(self.nodes[0].listtransactions("watchonly", 100, 0, True),
- {"category":"receive","amount":Decimal("0.1")},
+ {"category":"receive","amount":Decimal("1")},
{"txid":txid, "account" : "watchonly"} )
self.run_rbf_opt_in_test()
@@ -201,4 +201,3 @@ class ListTransactionsTest(BitcoinTestFramework):
if __name__ == '__main__':
ListTransactionsTest().main()
-