@@ -335,8 +335,6 @@ def additional_fees(anc_vsize, anc_fee, target_feerate):
335
335
)
336
336
anc_vsize = bitcoind .rpc .getmempoolentry (spend_txid_1 )["ancestorsize" ]
337
337
anc_fees = int (bitcoind .rpc .getmempoolentry (spend_txid_1 )["fees" ]["ancestor" ] * COIN )
338
- if not USE_TAPROOT :
339
- assert anc_vsize == 161 and anc_fees == 339
340
338
additional_fee = additional_fees (anc_vsize , anc_fees , feerate )
341
339
assert len (spend_res_2 ["warnings" ]) == 1
342
340
assert (
@@ -355,8 +353,6 @@ def additional_fees(anc_vsize, anc_fee, target_feerate):
355
353
)
356
354
anc_vsize = bitcoind .rpc .getmempoolentry (spend_txid_1 )["ancestorsize" ]
357
355
anc_fees = int (bitcoind .rpc .getmempoolentry (spend_txid_1 )["fees" ]["ancestor" ] * COIN )
358
- if not USE_TAPROOT :
359
- assert anc_vsize == 161 and anc_fees == 339
360
356
additional_fee = additional_fees (anc_vsize , anc_fees , feerate )
361
357
assert len (spend_res_2 ["warnings" ]) == 1
362
358
assert (
@@ -403,9 +399,6 @@ def additional_fees(anc_vsize, anc_fee, target_feerate):
403
399
anc_fees = int (bitcoind .rpc .getmempoolentry (deposit_2 )["fees" ]["ancestor" ] * COIN )
404
400
prev_anc_vsize = bitcoind .rpc .getmempoolentry (spend_txid_1 )["ancestorsize" ]
405
401
prev_anc_fees = int (bitcoind .rpc .getmempoolentry (spend_txid_1 )["fees" ]["ancestor" ] * COIN )
406
- if not USE_TAPROOT :
407
- assert anc_vsize == anc_fees == 165
408
- assert prev_anc_vsize == 161 and prev_anc_fees == 339
409
402
additional_fee = additional_fees (anc_vsize , anc_fees , feerate ) + additional_fees (prev_anc_vsize , prev_anc_fees , feerate )
410
403
assert len (spend_res_3 ["warnings" ]) == 1
411
404
assert (
0 commit comments