diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-08-27 16:53:11 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-09-16 18:53:04 +0200 |
commit | fa4db8671bb604e11b43a837f91de8866226f166 (patch) | |
tree | b48353484a513bdb439d937aed38946999be8fcd /test/functional/feature_cltv.py | |
parent | faad1e5ffda255aecf1b0ea2152cd4f6805e678f (diff) |
test: Activate all regtest softforks at height 1, unless overridden
Diffstat (limited to 'test/functional/feature_cltv.py')
-rwxr-xr-x | test/functional/feature_cltv.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/feature_cltv.py b/test/functional/feature_cltv.py index 2c3ef9b88b..3dc858f5d2 100755 --- a/test/functional/feature_cltv.py +++ b/test/functional/feature_cltv.py @@ -8,7 +8,6 @@ Test that the CHECKLOCKTIMEVERIFY soft-fork activates. """ from test_framework.blocktools import ( - CLTV_HEIGHT, create_block, create_coinbase, ) @@ -76,10 +75,14 @@ def cltv_validate(tx, height): cltv_modify_tx(tx, prepend_scriptsig=scheme[0], nsequence=scheme[1], nlocktime=scheme[2]) +CLTV_HEIGHT = 111 + + class BIP65Test(BitcoinTestFramework): def set_test_params(self): self.num_nodes = 1 self.extra_args = [[ + f'-testactivationheight=cltv@{CLTV_HEIGHT}', '-whitelist=noban@127.0.0.1', '-par=1', # Use only one script thread to get the exact reject reason for testing '-acceptnonstdtxn=1', # cltv_invalidate is nonstandard |