@@ -815,7 +815,7 @@ def test_psbt_input_keys(psbt_input, keys):
815
815
outputs = {self .nodes [0 ].getnewaddress (): 15 },
816
816
add_inputs = True , solving_data = {"descriptors" : [desc ]},
817
817
)
818
- assert_equal (psbt2 ["fee" ], psbt3 ["fee" ])
818
+ assert_approx (psbt2 ["fee" ], psbt3 ["fee" ], 0.00003 )
819
819
820
820
# Import the external utxo descriptor so that we can sign for it from the test wallet
821
821
if self .options .descriptors :
@@ -829,7 +829,7 @@ def test_psbt_input_keys(psbt_input, keys):
829
829
outputs = {self .nodes [0 ].getnewaddress (): 15 },
830
830
add_inputs = True ,
831
831
)
832
- assert_equal (psbt2 ["fee" ], psbt3 ["fee" ])
832
+ assert_approx (psbt2 ["fee" ], psbt3 ["fee" ], 0.00003 )
833
833
834
834
self .log .info ("Test signing inputs that the wallet has keys for but is not watching the scripts" )
835
835
self .nodes [1 ].createwallet (wallet_name = "scriptwatchonly" , disable_private_keys = True )
@@ -971,7 +971,7 @@ def test_psbt_input_keys(psbt_input, keys):
971
971
utxo = self .create_outpoints (self .nodes [0 ], outputs = [{address : 1 }])[0 ]
972
972
self .sync_all ()
973
973
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 })
975
975
decoded = self .nodes [2 ].decodepsbt (psbt )
976
976
test_psbt_input_keys (decoded ['inputs' ][0 ], [])
977
977
0 commit comments