Align constant names for maximum compact block / blocktxn depth

Github-Pull: #8637
Rebased-From: 3ac6de0a045cc9b2047ceb19af970e7ffbf905fa
This commit is contained in:
Pieter Wuille
2016-08-31 17:35:59 +02:00
committed by MarcoFalke
parent 3d23a0eaa3
commit 2cad5db6f7
3 changed files with 10 additions and 5 deletions

View File

@@ -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)