v29.4-roots.3 · Commit 10: [PATCH 10/30] fix: harden final Roots assurance
test/functional/mempool_accept.py
Before: test/functional/mempool_accept.py · After: test/functional/mempool_accept.py
File metadata
index 32d8f7f6eac9b30b085f58c53addb907ac6ae8be..fdea586588106528dd31308d66e43993df04ff0c 100755
Download original patch · Release notes
Diff rows 1–24 of 24. 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/mempool_accept.py
CHANGED
|
@@ -58,7 +58,7 @@ class MempoolAcceptanceTest(BitcoinTestFramework):
|
|
|
58
58
|
def set_test_params(self):
|
|
59
59
|
self.num_nodes = 1
|
|
60
60
|
self.extra_args = [[
|
|
61
|
-
'-txindex','-permitbaremultisig=0',
|
|
61
|
+
'-txindex','-permitbaredatacarrier=1','-permitbaremultisig=0',
|
|
62
62
|
]] * self.num_nodes
|
|
63
63
|
self.supports_cli = False
|
|
64
64
|
|
|
@@ -330,7 +330,7 @@ class MempoolAcceptanceTest(BitcoinTestFramework):
|
|
|
330
330
|
tx.vout[0] = output_p2sh_burn
|
|
331
331
|
tx.vout[0].nValue -= 1 # Make output smaller, such that it is dust for our policy
|
|
332
332
|
self.check_mempool_result(
|
|
333
|
-
result_expected=[{'txid': tx.rehash(), 'allowed': False, 'reject-reason': 'dust'}],
|
|
333
|
+
result_expected=[{'txid': tx.rehash(), 'allowed': False, 'reject-reason': 'dust-nonanchor'}],
|
|
334
334
|
rawtxs=[tx.serialize().hex()],
|
|
335
335
|
)
|
|
336
336
|
tx = tx_from_hex(raw_tx_reference)
|
|
@@ -403,7 +403,7 @@ class MempoolAcceptanceTest(BitcoinTestFramework):
|
|
|
403
403
|
anchor_nonempty_wit_spend.rehash()
|
|
404
404
|
|
|
405
405
|
self.check_mempool_result(
|
|
406
|
-
result_expected=[{'txid': anchor_nonempty_wit_spend.rehash(), 'allowed': False, 'reject-reason': 'bad-witness-nonstandard'}],
|
|
406
|
+
result_expected=[{'txid': anchor_nonempty_wit_spend.rehash(), 'allowed': False, 'reject-reason': 'bad-witness-anchor-not-empty'}],
|
|
407
407
|
rawtxs=[anchor_nonempty_wit_spend.serialize().hex()],
|
|
408
408
|
maxfeerate=0,
|
|
409
409
|
)
|