v31.1-roots.1 · Commit 2: [PATCH 02/17] feat(policy): preserve Roots parsing and local transaction checks
test/functional/feature_taproot.py
Before: test/functional/feature_taproot.py · After: test/functional/feature_taproot.py
File metadata
index 8891e0f9994b6d8276e0e6a441842ee7a90a81a8..d3db746392e9a0b8dbd167bdd4c38b05b135fcf6 100755
Download original patch · Release notes
Diff rows 1–15 of 15. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.
test/functional/feature_taproot.py
CHANGED
|
@@ -1414,6 +1414,7 @@ class TaprootTest(BitcoinTestFramework):
|
|
|
1414
1414
|
|
|
1415
1415
|
def set_test_params(self):
|
|
1416
1416
|
self.num_nodes = 1
|
|
1417
|
+
self.extra_args = [["-acceptnonstddatacarrier=1", "-datacarriersize=100000", "-rejectparasites=0"]]
|
|
1417
1418
|
self.setup_clean_chain = True
|
|
1418
1419
|
|
|
1419
1420
|
def block_submit(self, node, txs, msg, err_msg, cb_pubkey=None, fees=0, sigops_weight=0, witness=False, accept=False):
|
|
@@ -1632,6 +1633,8 @@ class TaprootTest(BitcoinTestFramework):
|
|
|
1632
1633
|
and (all(utxo.spender.is_standard for utxo in input_utxos)) # All inputs must be standard
|
|
1633
1634
|
and tx.version in TX_STANDARD_VERSIONS # The tx version must be standard
|
|
1634
1635
|
and not (tx.version == 3 and tx.get_vsize() > TRUC_MAX_VSIZE) # Topological standardness rules must be followed
|
|
1636
|
+
# Roots bounds each serialized witness stack locally.
|
|
1637
|
+
and all(len(witness.serialize()) <= 1650 for witness in tx.wit.vtxinwit)
|
|
1635
1638
|
)
|
|
1636
1639
|
msg = ','.join(utxo.spender.comment + ("*" if n == fail_input else "") for n, utxo in enumerate(input_utxos))
|
|
1637
1640
|
if is_standard_tx:
|