mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-02 01:04:43 +02:00
test: Fixes send_blocks_and_test docs
It's not true that if success=False the tip doesn't advance. It doesn'test advance to the provided tip, but it can advance to a competing one
This commit is contained in:
@@ -866,8 +866,8 @@ class P2PDataStore(P2PInterface):
|
||||
- the on_getheaders handler will ensure that any getheaders are responded to
|
||||
- if force_send is False: wait for getdata for each of the blocks. The on_getdata handler will
|
||||
ensure that any getdata messages are responded to. Otherwise send the full block unsolicited.
|
||||
- if success is True: assert that the node's tip advances to the most recent block
|
||||
- if success is False: assert that the node's tip doesn't advance
|
||||
- if success is True: assert that the node's tip is the last block in blocks at the end of the operation.
|
||||
- if success is False: assert that the node's tip isn't the last block in blocks at the end of the operation
|
||||
- if reject_reason is set: assert that the correct reject message is logged"""
|
||||
|
||||
with p2p_lock:
|
||||
|
||||
Reference in New Issue
Block a user