v29.4-roots.4 · Commit 10: [PATCH 10/37] 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. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
test/functional/mempool_accept.py
CHANGED
|
@@ -58,7 +58,7 @@ class MempoolAcceptanceTest(BitcoinTestFramework):
|
|
| 58 |
def set_test_params(self):
|
| 59 |
self.num_nodes = 1
|
| 60 |
self.extra_args = [[
|
| 61 |
-
'-txindex','-permitbaremultisig=0',
|
| 62 |
]] * self.num_nodes
|
| 63 |
self.supports_cli = False
|
| 64 |
|
|
@@ -330,7 +330,7 @@ class MempoolAcceptanceTest(BitcoinTestFramework):
|
|
| 330 |
tx.vout[0] = output_p2sh_burn
|
| 331 |
tx.vout[0].nValue -= 1 # Make output smaller, such that it is dust for our policy
|
| 332 |
self.check_mempool_result(
|
| 333 |
-
result_expected=[{'txid': tx.rehash(), 'allowed': False, 'reject-reason': 'dust'}],
|
| 334 |
rawtxs=[tx.serialize().hex()],
|
| 335 |
)
|
| 336 |
tx = tx_from_hex(raw_tx_reference)
|
|
@@ -403,7 +403,7 @@ class MempoolAcceptanceTest(BitcoinTestFramework):
|
|
| 403 |
anchor_nonempty_wit_spend.rehash()
|
| 404 |
|
| 405 |
self.check_mempool_result(
|
| 406 |
-
result_expected=[{'txid': anchor_nonempty_wit_spend.rehash(), 'allowed': False, 'reject-reason': 'bad-witness-nonstandard'}],
|
| 407 |
rawtxs=[anchor_nonempty_wit_spend.serialize().hex()],
|
| 408 |
maxfeerate=0,
|
| 409 |
)
|
|
|
|
| 58 |
def set_test_params(self):
|
| 59 |
self.num_nodes = 1
|
| 60 |
self.extra_args = [[
|
| 61 |
+
'-txindex','-permitbaredatacarrier=1','-permitbaremultisig=0',
|
| 62 |
]] * self.num_nodes
|
| 63 |
self.supports_cli = False
|
| 64 |
|
|
|
|
| 330 |
tx.vout[0] = output_p2sh_burn
|
| 331 |
tx.vout[0].nValue -= 1 # Make output smaller, such that it is dust for our policy
|
| 332 |
self.check_mempool_result(
|
| 333 |
+
result_expected=[{'txid': tx.rehash(), 'allowed': False, 'reject-reason': 'dust-nonanchor'}],
|
| 334 |
rawtxs=[tx.serialize().hex()],
|
| 335 |
)
|
| 336 |
tx = tx_from_hex(raw_tx_reference)
|
|
|
|
| 403 |
anchor_nonempty_wit_spend.rehash()
|
| 404 |
|
| 405 |
self.check_mempool_result(
|
| 406 |
+
result_expected=[{'txid': anchor_nonempty_wit_spend.rehash(), 'allowed': False, 'reject-reason': 'bad-witness-anchor-not-empty'}],
|
| 407 |
rawtxs=[anchor_nonempty_wit_spend.serialize().hex()],
|
| 408 |
maxfeerate=0,
|
| 409 |
)
|