mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-04 04:32:20 +02:00
[net processing] Only advertise support for version 2 compact blocks
Subsequent commits will remove support.
This commit is contained in:
@ -192,10 +192,8 @@ class CompactBlocksTest(BitcoinTestFramework):
|
||||
return (len(test_node.last_sendcmpct) > 0)
|
||||
test_node.wait_until(received_sendcmpct, timeout=30)
|
||||
with p2p_lock:
|
||||
# Check that the first version received is version 2
|
||||
# Check that version 2 is received.
|
||||
assert_equal(test_node.last_sendcmpct[0].version, 2)
|
||||
# And that we receive versions down to 1.
|
||||
assert_equal(test_node.last_sendcmpct[-1].version, 1)
|
||||
test_node.last_sendcmpct = []
|
||||
|
||||
tip = int(node.getbestblockhash(), 16)
|
||||
|
Reference in New Issue
Block a user