aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/p2p-compactblocks.py
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2016-08-31 17:35:59 +0200
committerMarcoFalke <falke.marco@gmail.com>2016-11-20 15:08:16 +0100
commit2cad5db6f752ad8fa2d047b67a137de76eb9c982 (patch)
tree7ae8cd2ba5acdd9c7bda8215d51ef67e64833966 /qa/rpc-tests/p2p-compactblocks.py
parent3d23a0eaa3cfa349833e42345daf954e9530bdfd (diff)
downloadbitcoin-2cad5db6f752ad8fa2d047b67a137de76eb9c982.tar.xz
Align constant names for maximum compact block / blocktxn depth
Github-Pull: #8637 Rebased-From: 3ac6de0a045cc9b2047ceb19af970e7ffbf905fa
Diffstat (limited to 'qa/rpc-tests/p2p-compactblocks.py')
-rwxr-xr-xqa/rpc-tests/p2p-compactblocks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qa/rpc-tests/p2p-compactblocks.py b/qa/rpc-tests/p2p-compactblocks.py
index 4029669780..0c73032c9d 100755
--- a/qa/rpc-tests/p2p-compactblocks.py
+++ b/qa/rpc-tests/p2p-compactblocks.py
@@ -635,9 +635,9 @@ class CompactBlocksTest(BitcoinTestFramework):
def test_compactblocks_not_at_tip(self, node, test_node):
# Test that requesting old compactblocks doesn't work.
- MAX_CMPCTBLOCK_DEPTH = 6
+ MAX_CMPCTBLOCK_DEPTH = 5
new_blocks = []
- for i in range(MAX_CMPCTBLOCK_DEPTH):
+ for i in range(MAX_CMPCTBLOCK_DEPTH + 1):
test_node.clear_block_announcement()
new_blocks.append(node.generate(1)[0])
wait_until(test_node.received_block_announcement, timeout=30)