From 59a83fb8d1f9030111a70e8184091e61cef15c38 Mon Sep 17 00:00:00 2001 From: Greg Sanders Date: Wed, 2 Jul 2025 11:05:21 -0400 Subject: [PATCH] functional test: correctly detect nonstd TRUC tx vsize in feature_taproot Github-Pull: #32859 Rebased-From: f0524cda3995cf65adab3d0ca8da0dee4e31c79b --- test/functional/feature_taproot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/functional/feature_taproot.py b/test/functional/feature_taproot.py index a7de240fa5e..4acb7524fba 100755 --- a/test/functional/feature_taproot.py +++ b/test/functional/feature_taproot.py @@ -643,6 +643,7 @@ MIN_FEE = 50000 TX_MAX_STANDARD_VERSION = 3 TX_STANDARD_VERSIONS = [1, 2, TX_MAX_STANDARD_VERSION] +TRUC_MAX_VSIZE = 10000 # test doesn't cover in-mempool spends, so only this limit is hit # === Actual test cases === @@ -1504,7 +1505,9 @@ class TaprootTest(BitcoinTestFramework): is_standard_tx = ( fail_input is None # Must be valid to be standard and (all(utxo.spender.is_standard for utxo in input_utxos)) # All inputs must be standard - and tx.version in TX_STANDARD_VERSIONS) # The tx version must be standard + and tx.version in TX_STANDARD_VERSIONS # The tx version must be standard + and not (tx.version == 3 and tx.get_vsize() > TRUC_MAX_VSIZE) # Topological standardness rules must be followed + ) tx.rehash() msg = ','.join(utxo.spender.comment + ("*" if n == fail_input else "") for n, utxo in enumerate(input_utxos)) if is_standard_tx: