Skip to content

Commit 4f270d2

Browse files
author
MacroFake
committed
Merge bitcoin/bitcoin#26404: test: fix intermittent failure in rpc_getblockfrompeer.py
8a9f1e4 test: fix intermittent failure in rpc_getblockfrompeer.py (Martin Zumsande) Pull request description: Fixes an intermittent failure in `rpc_getblockfrompeer.py` observed in https://cirrus-ci.com/task/6610115527704576 by adding a sync to make sure the node has processed the header we sent it before we query it for the corresponding block. Fixes #26412 ACKs for top commit: jonatack: ACK 8a9f1e4 Tree-SHA512: f6188ab3cfd863034e44e9806d0d99a8781462bec94141501aefc71589153481ffb144e126326ab81807c2b2c93de7f4aac5d09dbcf26c4512a176e06fc6e5f8
2 parents 984a015 + 8a9f1e4 commit 4f270d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/rpc_getblockfrompeer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def run_test(self):
100100
# Connect a P2PInterface to the pruning node and have it submit only the header of the
101101
# block that the pruning node has not seen
102102
node1_interface = self.nodes[1].add_p2p_connection(P2PInterface())
103-
node1_interface.send_message(msg_headers([block]))
103+
node1_interface.send_and_ping(msg_headers([block]))
104104

105105
# Get the peer id of the P2PInterface from the pruning node
106106
node1_peers = self.nodes[1].getpeerinfo()

0 commit comments

Comments
 (0)