From e694b8af98dd577ce8c9f38644dfc1c4872b730b Mon Sep 17 00:00:00 2001 From: Adrian Gallagher Date: Sun, 29 Jan 2017 19:03:31 -0800 Subject: [PATCH] Litecoin: Fix p2p-compactblocks.py test hang --- qa/rpc-tests/p2p-compactblocks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qa/rpc-tests/p2p-compactblocks.py b/qa/rpc-tests/p2p-compactblocks.py index 06fa02901..c7bf34230 100755 --- a/qa/rpc-tests/p2p-compactblocks.py +++ b/qa/rpc-tests/p2p-compactblocks.py @@ -10,6 +10,8 @@ from test_framework.blocktools import create_block, create_coinbase, add_witness from test_framework.siphash import siphash256 from test_framework.script import CScript, OP_TRUE +VB_TOP_BITS = 0x20000000 + ''' CompactBlocksTest -- test compact blocks (BIP 152) @@ -128,7 +130,7 @@ class CompactBlocksTest(BitcoinTestFramework): tip = node.getbestblockhash() mtp = node.getblockheader(tip)['mediantime'] block = create_block(int(tip, 16), create_coinbase(height + 1), mtp + 1) - block.nVersion = 4 + block.nVersion = VB_TOP_BITS if segwit: add_witness_commitment(block) block.solve()