diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-06-25 09:17:21 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-06-25 13:21:59 -0400 |
commit | fa103a5d5e90e2c947899bc31f3f68744adff321 (patch) | |
tree | a9a969aa4acaf82c8d51ce30b48f758799d30f68 /test | |
parent | b1dc39df6ec878d06fc7217a3d7bf07397edf3ea (diff) |
[qa] wallet_basic: Specify minimum required amount for listunspent
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/wallet_basic.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/wallet_basic.py b/test/functional/wallet_basic.py index d6a64eaefb..0353905142 100755 --- a/test/functional/wallet_basic.py +++ b/test/functional/wallet_basic.py @@ -239,8 +239,8 @@ class WalletTest(BitcoinTestFramework): # 2. hex-changed one output to 0.0 # 3. sign and send # 4. check if recipient (node0) can list the zero value tx - usp = self.nodes[1].listunspent() - inputs = [{"txid": usp[0]['txid'], "vout": usp[0]['vout']}] + usp = self.nodes[1].listunspent(query_options={'minimumAmount': '49.998'})[0] + inputs = [{"txid": usp['txid'], "vout": usp['vout']}] outputs = {self.nodes[1].getnewaddress(): 49.998, self.nodes[0].getnewaddress(): 11.11} raw_tx = self.nodes[1].createrawtransaction(inputs, outputs).replace("c0833842", "00000000") # replace 11.11 with 0.0 (int32) |