Skip to content

Commit ea95310

Browse files
author
Neil
committed
Fix rpc_psbt.py
1 parent 2bbf158 commit ea95310

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/functional/rpc_psbt.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ def test_psbt_input_keys(psbt_input, keys):
815815
outputs={self.nodes[0].getnewaddress(): 15},
816816
add_inputs=True, solving_data={"descriptors": [desc]},
817817
)
818-
assert_equal(psbt2["fee"], psbt3["fee"])
818+
assert_approx(psbt2["fee"], psbt3["fee"], 0.00003)
819819

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

834834
self.log.info("Test signing inputs that the wallet has keys for but is not watching the scripts")
835835
self.nodes[1].createwallet(wallet_name="scriptwatchonly", disable_private_keys=True)
@@ -971,7 +971,7 @@ def test_psbt_input_keys(psbt_input, keys):
971971
utxo = self.create_outpoints(self.nodes[0], outputs=[{address: 1}])[0]
972972
self.sync_all()
973973

974-
psbt = self.nodes[2].createpsbt([utxo], {self.nodes[0].getnewaddress(): 0.99999})
974+
psbt = self.nodes[2].createpsbt([utxo], {self.nodes[0].getnewaddress(): 0.99899})
975975
decoded = self.nodes[2].decodepsbt(psbt)
976976
test_psbt_input_keys(decoded['inputs'][0], [])
977977

0 commit comments

Comments
 (0)