Skip to content

Commit fa103a5

Browse files
author
MarcoFalke
committed
[qa] wallet_basic: Specify minimum required amount for listunspent
1 parent b1dc39d commit fa103a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/wallet_basic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ def run_test(self):
239239
# 2. hex-changed one output to 0.0
240240
# 3. sign and send
241241
# 4. check if recipient (node0) can list the zero value tx
242-
usp = self.nodes[1].listunspent()
243-
inputs = [{"txid": usp[0]['txid'], "vout": usp[0]['vout']}]
242+
usp = self.nodes[1].listunspent(query_options={'minimumAmount': '49.998'})[0]
243+
inputs = [{"txid": usp['txid'], "vout": usp['vout']}]
244244
outputs = {self.nodes[1].getnewaddress(): 49.998, self.nodes[0].getnewaddress(): 11.11}
245245

246246
raw_tx = self.nodes[1].createrawtransaction(inputs, outputs).replace("c0833842", "00000000") # replace 11.11 with 0.0 (int32)

0 commit comments

Comments
 (0)