aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_presegwit_node_upgrade.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-08-27 12:54:24 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-09-16 18:52:59 +0200
commitfaad1e5ffda255aecf1b0ea2152cd4f6805e678f (patch)
treef5f115168b1c19db862c66d23ca82a41a6a99f5e /test/functional/feature_presegwit_node_upgrade.py
parentfadb2ef2fa8561882db463f35df9b8a0e9609658 (diff)
downloadbitcoin-faad1e5ffda255aecf1b0ea2152cd4f6805e678f.tar.xz
Introduce -testactivationheight=name@height setting
Diffstat (limited to 'test/functional/feature_presegwit_node_upgrade.py')
-rwxr-xr-xtest/functional/feature_presegwit_node_upgrade.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/feature_presegwit_node_upgrade.py b/test/functional/feature_presegwit_node_upgrade.py
index fd6b8620d4..aac42d4dbf 100755
--- a/test/functional/feature_presegwit_node_upgrade.py
+++ b/test/functional/feature_presegwit_node_upgrade.py
@@ -16,7 +16,7 @@ class SegwitUpgradeTest(BitcoinTestFramework):
def set_test_params(self):
self.setup_clean_chain = True
self.num_nodes = 1
- self.extra_args = [["-segwitheight=10"]]
+ self.extra_args = [["-testactivationheight=segwit@10"]]
def run_test(self):
"""A pre-segwit node with insufficiently validated blocks needs to redownload blocks"""
@@ -37,14 +37,14 @@ class SegwitUpgradeTest(BitcoinTestFramework):
# Restarting the node (with segwit activation height set to 5) should result in a shutdown
# because the blockchain consists of 3 insufficiently validated blocks per segwit consensus rules.
node.assert_start_raises_init_error(
- extra_args=["-segwitheight=5"],
+ extra_args=["-testactivationheight=segwit@5"],
expected_msg=": Witness data for blocks after height 5 requires "
f"validation. Please restart with -reindex..{os.linesep}"
"Please restart with -reindex or -reindex-chainstate to recover.",
)
# As directed, the user restarts the node with -reindex
- self.start_node(0, extra_args=["-reindex", "-segwitheight=5"])
+ self.start_node(0, extra_args=["-reindex", "-testactivationheight=segwit@5"])
# With the segwit consensus rules, the node is able to validate only up to block 4
assert_equal(node.getblockcount(), 4)