v31.1-roots.1 · Commit 2: [PATCH 02/17] feat(policy): preserve Roots parsing and local transaction checks
test/functional/feature_rbf.py
Before: test/functional/feature_rbf.py · After: test/functional/feature_rbf.py
File metadata
index a2c8cb606e0b58be819b273c82acb2421db26ba6..14cdc0c242d138d2bc8c742b1662c64f1cb67673 100755
Download original patch · Release notes
Diff rows 1–17 of 17. 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/feature_rbf.py
CHANGED
|
@@ -27,6 +27,7 @@ MAX_REPLACEMENT_LIMIT = 100
|
|
| 27 |
class ReplaceByFeeTest(BitcoinTestFramework):
|
| 28 |
def set_test_params(self):
|
| 29 |
self.num_nodes = 2
|
|
|
|
| 30 |
self.uses_wallet = None
|
| 31 |
|
| 32 |
def run_test(self):
|
|
@@ -500,7 +501,9 @@ class ReplaceByFeeTest(BitcoinTestFramework):
|
|
| 500 |
for incremental_setting in (0, 5, 10, 50, 100, 234, 1000, 5000, 21000):
|
| 501 |
incremental_setting_decimal = incremental_setting / Decimal(COIN)
|
| 502 |
self.log.info(f"-> Test -incrementalrelayfee={incremental_setting:.8f}sat/kvB...")
|
| 503 |
-
self.restart_node(0, extra_args=[f"-incrementalrelayfee={incremental_setting_decimal:.8f}", "-persistmempool=0"])
|
|
|
|
|
|
|
| 504 |
|
| 505 |
# When incremental relay feerate is higher than min relay feerate, min relay feerate is automatically increased.
|
| 506 |
min_relay_feerate = node.getmempoolinfo()["minrelaytxfee"]
|
|
|
|
| 27 |
class ReplaceByFeeTest(BitcoinTestFramework):
|
| 28 |
def set_test_params(self):
|
| 29 |
self.num_nodes = 2
|
| 30 |
+
self.extra_args = [["-minrelaytxfee=0.000001", "-maxscriptsize=1000000", "-datacarriersize=1000000"]] * self.num_nodes
|
| 31 |
self.uses_wallet = None
|
| 32 |
|
| 33 |
def run_test(self):
|
|
|
|
| 501 |
for incremental_setting in (0, 5, 10, 50, 100, 234, 1000, 5000, 21000):
|
| 502 |
incremental_setting_decimal = incremental_setting / Decimal(COIN)
|
| 503 |
self.log.info(f"-> Test -incrementalrelayfee={incremental_setting:.8f}sat/kvB...")
|
| 504 |
+
# Leave minrelay unset here to exercise automatic incremental-fee raising.
|
| 505 |
+
resource_args = [arg for arg in self.extra_args[0] if not arg.startswith("-minrelaytxfee=")]
|
| 506 |
+
self.restart_node(0, extra_args=resource_args + [f"-incrementalrelayfee={incremental_setting_decimal:.8f}", "-persistmempool=0"])
|
| 507 |
|
| 508 |
# When incremental relay feerate is higher than min relay feerate, min relay feerate is automatically increased.
|
| 509 |
min_relay_feerate = node.getmempoolinfo()["minrelaytxfee"]
|