v30.3-roots.1 · Commit 42: [PATCH 42/68] test: adapt full-suite fixtures to current Roots policy and P2P APIs
test/functional/mempool_sigoplimit.py
Before: test/functional/mempool_sigoplimit.py · After: test/functional/mempool_sigoplimit.py
File metadata
index 41e06bdabfbc71926d8db68b89d097b75d12d0a3..f1722daf1c6a5c30a4ef5d02bce7288d113a0aa9 100755
Download original patch · Release notes
Diff rows 1–16 of 16. 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_sigoplimit.py
CHANGED
|
@@ -147,7 +147,7 @@ class BytesPerSigOpTest(BitcoinTestFramework):
|
|
|
147
147
|
self.log.info("Test a overly-large sigops-vbyte hits package limits")
|
|
148
148
|
# Make a 2-transaction package which fails vbyte checks even though
|
|
149
149
|
# separately they would work.
|
|
150
|
-
self.restart_node(0, extra_args=["-bytespersigop=5000","-permitbaremultisig=1"])
|
|
150
|
+
self.restart_node(0, extra_args=self.extra_args[0] + ["-bytespersigop=5000", "-permitbaremultisig=1"])
|
|
151
151
|
|
|
152
152
|
def create_bare_multisig_tx(utxo_to_spend=None):
|
|
153
153
|
_, pubkey = generate_keypair()
|
|
@@ -229,7 +229,7 @@ class BytesPerSigOpTest(BitcoinTestFramework):
|
|
|
229
229
|
else:
|
|
230
230
|
bytespersigop_parameter = f"-bytespersigop={bytes_per_sigop}"
|
|
231
231
|
self.log.info(f"Test sigops limit setting {bytespersigop_parameter}...")
|
|
232
|
-
self.restart_node(0, extra_args=[bytespersigop_parameter])
|
|
232
|
+
self.restart_node(0, extra_args=self.extra_args[0] + [bytespersigop_parameter])
|
|
233
233
|
|
|
234
234
|
for num_sigops in (69, 101, 142, 183, 222):
|
|
235
235
|
self.test_sigops_limit(bytes_per_sigop, num_sigops)
|