From dca9352966d4f716375342e96009b5b42ea6458e Mon Sep 17 00:00:00 2001 From: James Dorfman Date: Sat, 22 Jul 2023 17:03:43 +0000 Subject: [PATCH] Add elements-specific descriptions to assertions commented out in the merge of bitcoin/bitcoin#23201 in 7d759da52a --- test/functional/rpc_fundrawtransaction.py | 2 +- test/functional/wallet_send.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/rpc_fundrawtransaction.py b/test/functional/rpc_fundrawtransaction.py index aef5b15ad5..ceeaba0b57 100755 --- a/test/functional/rpc_fundrawtransaction.py +++ b/test/functional/rpc_fundrawtransaction.py @@ -1140,7 +1140,7 @@ def test_external_inputs(self): input_add_weight = high_input_weight - (41 * 4) tx4_weight = ext_fund.decoderawtransaction(funded_tx4["hex"])["weight"] + input_add_weight tx4_vsize = int(ceil(tx4_weight / 4)) - # assert_fee_amount(funded_tx4["fee"], tx4_vsize, Decimal(0.0001)) + # assert_fee_amount(funded_tx4["fee"], tx4_vsize, Decimal(0.0001)) Fee is different in Elements # Funding with weight at csuint boundaries should not cause problems funded_tx = ext_fund.fundrawtransaction(raw_tx, {"input_weights": [{"txid": ext_utxo["txid"], "vout": ext_utxo["vout"], "weight": 255}]}) diff --git a/test/functional/wallet_send.py b/test/functional/wallet_send.py index c5dec95d29..7e28bb9026 100755 --- a/test/functional/wallet_send.py +++ b/test/functional/wallet_send.py @@ -564,7 +564,7 @@ def run_test(self): tx = self.nodes[0].finalizepsbt(signed["psbt"]) testres = self.nodes[0].testmempoolaccept([tx["hex"]])[0] assert_equal(testres["allowed"], True) - # assert_fee_amount(testres["fees"]["base"], testres["vsize"], Decimal(0.0001)) + # assert_fee_amount(testres["fees"]["base"], testres["vsize"], Decimal(0.0001)) Fee is different in Elements if __name__ == '__main__': WalletSendTest().main()