[net processing] Only advertise support for version 2 compact blocks

Subsequent commits will remove support.
This commit is contained in:
John Newbery
2021-01-02 15:09:04 +00:00
parent cba909eaf9
commit 16730b64bb
3 changed files with 11 additions and 16 deletions

View File

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