@@ -42,7 +42,7 @@ def wrapper(self):
42
42
class MempoolAcceptV3 (BitcoinTestFramework ):
43
43
def set_test_params (self ):
44
44
self .num_nodes = 1
45
- self .extra_args = [["-acceptnonstdtxn=1" ]]
45
+ self .extra_args = [[]]
46
46
self .setup_clean_chain = True
47
47
48
48
def check_mempool (self , txids ):
@@ -51,7 +51,7 @@ def check_mempool(self, txids):
51
51
assert_equal (len (txids ), len (mempool_contents ))
52
52
assert all ([txid in txids for txid in mempool_contents ])
53
53
54
- @cleanup (extra_args = ["-datacarriersize=20000" , "-acceptnonstdtxn=1" ])
54
+ @cleanup (extra_args = ["-datacarriersize=20000" ])
55
55
def test_v3_max_vsize (self ):
56
56
node = self .nodes [0 ]
57
57
self .log .info ("Test v3-specific maximum transaction vsize" )
@@ -65,7 +65,7 @@ def test_v3_max_vsize(self):
65
65
tx_v2_heavy = self .wallet .send_self_transfer (from_node = node , target_weight = (V3_MAX_VSIZE + 1 ) * WITNESS_SCALE_FACTOR , version = 2 )
66
66
self .check_mempool ([tx_v2_heavy ["txid" ]])
67
67
68
- @cleanup (extra_args = ["-datacarriersize=1000" , "-acceptnonstdtxn=1" ])
68
+ @cleanup (extra_args = ["-datacarriersize=1000" ])
69
69
def test_v3_acceptance (self ):
70
70
node = self .nodes [0 ]
71
71
self .log .info ("Test a child of a v3 transaction cannot be more than 1000vB" )
@@ -105,7 +105,7 @@ def test_v3_acceptance(self):
105
105
self .check_mempool ([tx_v3_parent_normal ["txid" ], tx_v3_child_almost_heavy_rbf ["txid" ]])
106
106
assert_equal (node .getmempoolentry (tx_v3_parent_normal ["txid" ])["descendantcount" ], 2 )
107
107
108
- @cleanup (extra_args = [ "-acceptnonstdtxn=1" ] )
108
+ @cleanup (extra_args = None )
109
109
def test_v3_replacement (self ):
110
110
node = self .nodes [0 ]
111
111
self .log .info ("Test v3 transactions may be replaced by v3 transactions" )
@@ -162,7 +162,7 @@ def test_v3_replacement(self):
162
162
self .check_mempool ([tx_v3_bip125_rbf_v2 ["txid" ], tx_v3_parent ["txid" ], tx_v3_child ["txid" ]])
163
163
164
164
165
- @cleanup (extra_args = [ "-acceptnonstdtxn=1" ] )
165
+ @cleanup (extra_args = None )
166
166
def test_v3_bip125 (self ):
167
167
node = self .nodes [0 ]
168
168
self .log .info ("Test v3 transactions that don't signal BIP125 are replaceable" )
@@ -186,7 +186,7 @@ def test_v3_bip125(self):
186
186
)
187
187
self .check_mempool ([tx_v3_no_bip125_rbf ["txid" ]])
188
188
189
- @cleanup (extra_args = ["-datacarriersize=40000" , "-acceptnonstdtxn=1" ])
189
+ @cleanup (extra_args = ["-datacarriersize=40000" ])
190
190
def test_v3_reorg (self ):
191
191
node = self .nodes [0 ]
192
192
self .log .info ("Test that, during a reorg, v3 rules are not enforced" )
@@ -208,7 +208,7 @@ def test_v3_reorg(self):
208
208
node .reconsiderblock (block [0 ])
209
209
210
210
211
- @cleanup (extra_args = ["-limitdescendantsize=10" , "-datacarriersize=40000" , "-acceptnonstdtxn=1" ])
211
+ @cleanup (extra_args = ["-limitdescendantsize=10" , "-datacarriersize=40000" ])
212
212
def test_nondefault_package_limits (self ):
213
213
"""
214
214
Max standard tx size + v3 rules imply the ancestor/descendant rules (at their default
@@ -241,7 +241,7 @@ def test_nondefault_package_limits(self):
241
241
self .generate (node , 1 )
242
242
243
243
self .log .info ("Test that a decreased limitancestorsize also applies to v3 parent" )
244
- self .restart_node (0 , extra_args = ["-limitancestorsize=10" , "-datacarriersize=40000" , "-acceptnonstdtxn=1" ])
244
+ self .restart_node (0 , extra_args = ["-limitancestorsize=10" , "-datacarriersize=40000" ])
245
245
tx_v3_parent_large2 = self .wallet .send_self_transfer (
246
246
from_node = node ,
247
247
target_weight = parent_target_weight ,
@@ -261,7 +261,7 @@ def test_nondefault_package_limits(self):
261
261
assert_raises_rpc_error (- 26 , f"too-long-mempool-chain, exceeds ancestor size limit" , node .sendrawtransaction , tx_v3_child_large2 ["hex" ])
262
262
self .check_mempool ([tx_v3_parent_large2 ["txid" ]])
263
263
264
- @cleanup (extra_args = ["-datacarriersize=1000" , "-acceptnonstdtxn=1" ])
264
+ @cleanup (extra_args = ["-datacarriersize=1000" ])
265
265
def test_v3_ancestors_package (self ):
266
266
self .log .info ("Test that v3 ancestor limits are checked within the package" )
267
267
node = self .nodes [0 ]
@@ -304,7 +304,7 @@ def test_v3_ancestors_package(self):
304
304
result = node .testmempoolaccept ([tx_v3_parent ["hex" ], tx_v3_child ["hex" ], tx_v3_grandchild ["hex" ]])
305
305
assert all ([txresult ["package-error" ] == f"v3-violation, tx { tx_v3_grandchild ['txid' ]} (wtxid={ tx_v3_grandchild ['wtxid' ]} ) would have too many ancestors" for txresult in result ])
306
306
307
- @cleanup (extra_args = [ "-acceptnonstdtxn=1" ] )
307
+ @cleanup (extra_args = None )
308
308
def test_v3_ancestors_package_and_mempool (self ):
309
309
"""
310
310
A v3 transaction in a package cannot have 2 v3 parents.
@@ -334,7 +334,7 @@ def test_v3_ancestors_package_and_mempool(self):
334
334
assert_equal (result ['package_msg' ], f"v3-violation, tx { tx_child_violator ['txid' ]} (wtxid={ tx_child_violator ['wtxid' ]} ) would have too many ancestors" )
335
335
self .check_mempool ([tx_in_mempool ["txid" ]])
336
336
337
- @cleanup (extra_args = [ "-acceptnonstdtxn=1" ] )
337
+ @cleanup (extra_args = None )
338
338
def test_sibling_eviction_package (self ):
339
339
"""
340
340
When a transaction has a mempool sibling, it may be eligible for sibling eviction.
@@ -410,7 +410,7 @@ def test_sibling_eviction_package(self):
410
410
assert_equal (result_package_cpfp ["tx-results" ][tx_sibling_3 ['wtxid' ]]['error' ], expected_error_cpfp )
411
411
412
412
413
- @cleanup (extra_args = ["-datacarriersize=1000" , "-acceptnonstdtxn=1" ])
413
+ @cleanup (extra_args = ["-datacarriersize=1000" ])
414
414
def test_v3_package_inheritance (self ):
415
415
self .log .info ("Test that v3 inheritance is checked within package" )
416
416
node = self .nodes [0 ]
@@ -429,7 +429,7 @@ def test_v3_package_inheritance(self):
429
429
assert_equal (result ['package_msg' ], f"v3-violation, non-v3 tx { tx_v2_child ['txid' ]} (wtxid={ tx_v2_child ['wtxid' ]} ) cannot spend from v3 tx { tx_v3_parent ['txid' ]} (wtxid={ tx_v3_parent ['wtxid' ]} )" )
430
430
self .check_mempool ([])
431
431
432
- @cleanup (extra_args = [ "-acceptnonstdtxn=1" ] )
432
+ @cleanup (extra_args = None )
433
433
def test_v3_in_testmempoolaccept (self ):
434
434
node = self .nodes [0 ]
435
435
@@ -479,7 +479,7 @@ def test_v3_in_testmempoolaccept(self):
479
479
test_accept_2children_with_in_mempool_parent = node .testmempoolaccept ([tx_v3_child_1 ["hex" ], tx_v3_child_2 ["hex" ]])
480
480
assert all ([result ["package-error" ] == expected_error_extra for result in test_accept_2children_with_in_mempool_parent ])
481
481
482
- @cleanup (extra_args = [ "-acceptnonstdtxn=1" ] )
482
+ @cleanup (extra_args = None )
483
483
def test_reorg_2child_rbf (self ):
484
484
node = self .nodes [0 ]
485
485
self .log .info ("Test that children of a v3 transaction can be replaced individually, even if there are multiple due to reorg" )
@@ -510,7 +510,7 @@ def test_reorg_2child_rbf(self):
510
510
self .check_mempool ([ancestor_tx ["txid" ], child_1_conflict ["txid" ], child_2 ["txid" ]])
511
511
assert_equal (node .getmempoolentry (ancestor_tx ["txid" ])["descendantcount" ], 3 )
512
512
513
- @cleanup (extra_args = [ "-acceptnonstdtxn=1" ] )
513
+ @cleanup (extra_args = None )
514
514
def test_v3_sibling_eviction (self ):
515
515
self .log .info ("Test sibling eviction for v3" )
516
516
node = self .nodes [0 ]
@@ -583,7 +583,7 @@ def test_v3_sibling_eviction(self):
583
583
node .sendrawtransaction (tx_v3_child_3 ["hex" ])
584
584
self .check_mempool (txids_v2_100 + [tx_v3_parent ["txid" ], tx_v3_child_3 ["txid" ]])
585
585
586
- @cleanup (extra_args = [ "-acceptnonstdtxn=1" ] )
586
+ @cleanup (extra_args = None )
587
587
def test_reorg_sibling_eviction_1p2c (self ):
588
588
node = self .nodes [0 ]
589
589
self .log .info ("Test that sibling eviction is not allowed when multiple siblings exist" )
0 commit comments