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/test_framework/util.py | |
parent | faad1e5ffda255aecf1b0ea2152cd4f6805e678f (diff) | |
download | bitcoin-fa4db8671bb604e11b43a837f91de8866226f166.tar.xz |
test: Activate all regtest softforks at height 1, unless overridden
Diffstat (limited to 'test/functional/test_framework/util.py')
-rw-r--r-- | test/functional/test_framework/util.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/test/functional/test_framework/util.py b/test/functional/test_framework/util.py index d66499dbcb..ea5c641b4a 100644 --- a/test/functional/test_framework/util.py +++ b/test/functional/test_framework/util.py @@ -560,17 +560,6 @@ def mine_large_block(test_framework, node, utxos=None): test_framework.generate(node, 1) -def generate_to_height(test_framework, node, target_height): - """Generates blocks until a given target block height has been reached. - To prevent timeouts, only up to 200 blocks are generated per RPC call. - Can be used to activate certain soft-forks (e.g. CSV, CLTV).""" - current_height = node.getblockcount() - while current_height < target_height: - nblocks = min(200, target_height - current_height) - current_height += len(test_framework.generate(node, nblocks)) - assert_equal(node.getblockcount(), target_height) - - def find_vout_for_address(node, txid, addr): """ Locate the vout index of the given transaction sending to the |