diff options
| author | Patrick Lodder <[email protected]> | 2020-07-22 12:48:40 +0200 |
|---|---|---|
| committer | Patrick Lodder <[email protected]> | 2020-07-22 13:51:00 +0200 |
| commit | e3d075f71071d2681e3b3d792ff7b7c5583b30a9 (patch) | |
| tree | 6f657f950c3af94f371d53260ac2692ab2b9b1d8 /qa | |
| parent | rpc-tests: fix mempool_limit test (diff) | |
| download | discoin-e3d075f71071d2681e3b3d792ff7b7c5583b30a9.tar.xz discoin-e3d075f71071d2681e3b3d792ff7b7c5583b30a9.zip | |
rpc-tests: fix listtransactions to not spend dust
Diffstat (limited to 'qa')
| -rwxr-xr-x | qa/rpc-tests/listtransactions.py | 5 |
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() - |