Skip to content

Commit fe70c8b

Browse files
Tom Trevethandelta1
authored andcommitted
prevent intermittent failure in wallet_fundrawtransaction test
(cherry picked from commit 58d86d8)
1 parent f7bfef4 commit fe70c8b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/functional/wallet_fundrawtransaction.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,8 +1192,7 @@ def test_external_inputs(self):
11921192
funded_tx4 = ext_fund.fundrawtransaction(raw_tx, input_weights=[{"txid": ext_utxo["txid"], "vout": ext_utxo["vout"], "weight": high_input_weight}], fee_rate=10)
11931193
input_add_weight = high_input_weight - (41 * 4)
11941194
tx4_weight = ext_fund.decoderawtransaction(funded_tx4["hex"])["weight"] + input_add_weight
1195-
tx4_vsize = int(ceil(tx4_weight / 4))
1196-
tx4_vsize = 2769 # ELEMENTS: larger transaction
1195+
tx4_vsize = int(ceil(tx4_weight / 4)) + 2172 # ELEMENTS: larger transaction input weight for CT
11971196
assert_fee_amount(funded_tx4["fee"], tx4_vsize, Decimal(0.0001))
11981197

11991198
# Funding with weight at csuint boundaries should not cause problems

0 commit comments

Comments
 (0)