From fab17e8272f5f70213f186809479ee7a75898b1d Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Sat, 29 Dec 2018 18:19:10 +0100 Subject: test: Add basic test for BIP34 --- test/functional/test_framework/blocktools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/functional/test_framework/blocktools.py') 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) -- cgit v1.2.3