mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
test: fix intermittent failure in rpc_getblockfrompeer.py
by adding a sync to make sure the node has received the header before we query it for the block
This commit is contained in:
parent
551c8e9526
commit
8a9f1e4d18
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ class GetBlockFromPeerTest(BitcoinTestFramework):
|
|||
# Connect a P2PInterface to the pruning node and have it submit only the header of the
|
||||
# block that the pruning node has not seen
|
||||
node1_interface = self.nodes[1].add_p2p_connection(P2PInterface())
|
||||
node1_interface.send_message(msg_headers([block]))
|
||||
node1_interface.send_and_ping(msg_headers([block]))
|
||||
|
||||
# Get the peer id of the P2PInterface from the pruning node
|
||||
node1_peers = self.nodes[1].getpeerinfo()
|
||||
|
|
Loading…
Reference in a new issue