Skip to content

Commit

Permalink
Fix: rpc_psbt.py test
Browse files Browse the repository at this point in the history
  • Loading branch information
meherett committed Jun 11, 2024
1 parent c2429df commit f42285b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/functional/rpc_psbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ def test_psbt_input_keys(psbt_input, keys):
outputs={self.nodes[0].getnewaddress(): 15},
add_inputs=True, solving_data={"descriptors": [desc]},
)
assert_equal(psbt2["fee"], psbt3["fee"])
assert_approx(psbt2["fee"], psbt3["fee"])

# Import the external utxo descriptor so that we can sign for it from the test wallet
if self.options.descriptors:
Expand All @@ -831,7 +831,7 @@ def test_psbt_input_keys(psbt_input, keys):
outputs={self.nodes[0].getnewaddress(): 15},
add_inputs=True,
)
assert_equal(psbt2["fee"], psbt3["fee"])
assert_approx(psbt2["fee"], psbt3["fee"])

self.log.info("Test signing inputs that the wallet has keys for but is not watching the scripts")
self.nodes[1].createwallet(wallet_name="scriptwatchonly", disable_private_keys=True)
Expand Down Expand Up @@ -975,7 +975,7 @@ def test_psbt_input_keys(psbt_input, keys):
self.sync_all()
vout = find_output(self.nodes[0], txid, 1)

psbt = self.nodes[2].createpsbt([{"txid": txid, "vout": vout}], {self.nodes[0].getnewaddress(): 0.99999})
psbt = self.nodes[2].createpsbt([{"txid": txid, "vout": vout}], {self.nodes[0].getnewaddress(): 0.9995})
decoded = self.nodes[2].decodepsbt(psbt)
test_psbt_input_keys(decoded['inputs'][0], [])

Expand Down

0 comments on commit f42285b

Please sign in to comment.