diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-12-29 18:19:10 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-12-29 19:39:37 +0100 |
commit | fab17e8272f5f70213f186809479ee7a75898b1d (patch) | |
tree | e4f60bbd80436dcd89b724cfa232f28c4b3846cb /test/functional/test_framework/blocktools.py | |
parent | cbb91cd0ec8e858b986776723ed4dc25df4b74ee (diff) |
test: Add basic test for BIP34
Diffstat (limited to 'test/functional/test_framework/blocktools.py')
-rw-r--r-- | test/functional/test_framework/blocktools.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/test_framework/blocktools.py b/test/functional/test_framework/blocktools.py index 81cce1167b..51875854ca 100644 --- a/test/functional/test_framework/blocktools.py +++ b/test/functional/test_framework/blocktools.py @@ -44,9 +44,10 @@ from io import BytesIO # From BIP141 WITNESS_COMMITMENT_HEADER = b"\xaa\x21\xa9\xed" -def create_block(hashprev, coinbase, ntime=None): +def create_block(hashprev, coinbase, ntime=None, *, version=1): """Create a block (with regtest difficulty).""" block = CBlock() + block.nVersion = version if ntime is None: import time block.nTime = int(time.time() + 600) |