[qa] wallet_basic: Specify minimum required amount for listunspent

pull/13535/head
MarcoFalke 6 years ago
parent b1dc39df6e
commit fa103a5d5e
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548

@ -239,8 +239,8 @@ class WalletTest(BitcoinTestFramework):
# 2. hex-changed one output to 0.0 # 2. hex-changed one output to 0.0
# 3. sign and send # 3. sign and send
# 4. check if recipient (node0) can list the zero value tx # 4. check if recipient (node0) can list the zero value tx
usp = self.nodes[1].listunspent() usp = self.nodes[1].listunspent(query_options={'minimumAmount': '49.998'})[0]
inputs = [{"txid": usp[0]['txid'], "vout": usp[0]['vout']}] inputs = [{"txid": usp['txid'], "vout": usp['vout']}]
outputs = {self.nodes[1].getnewaddress(): 49.998, self.nodes[0].getnewaddress(): 11.11} 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) raw_tx = self.nodes[1].createrawtransaction(inputs, outputs).replace("c0833842", "00000000") # replace 11.11 with 0.0 (int32)

Loading…
Cancel
Save