diff options
author | MacroFake <falke.marco@gmail.com> | 2022-10-29 11:14:06 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-10-29 11:14:10 +0200 |
commit | 4f270d2b63913b86c4366756031c5003837075d6 (patch) | |
tree | 159e75e1df7cf43696f0c9bd0743b65f6e00aefb /test | |
parent | 984a01589b7bc21e94d2ca9393d2d783cb3908a9 (diff) | |
parent | 8a9f1e4d18e2b94509548af2aa3ad14185793f73 (diff) | |
download | bitcoin-4f270d2b63913b86c4366756031c5003837075d6.tar.xz |
Merge bitcoin/bitcoin#26404: test: fix intermittent failure in rpc_getblockfrompeer.py
8a9f1e4d18e2b94509548af2aa3ad14185793f73 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 8a9f1e4d18e2b94509548af2aa3ad14185793f73
Tree-SHA512: f6188ab3cfd863034e44e9806d0d99a8781462bec94141501aefc71589153481ffb144e126326ab81807c2b2c93de7f4aac5d09dbcf26c4512a176e06fc6e5f8
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/rpc_getblockfrompeer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/rpc_getblockfrompeer.py b/test/functional/rpc_getblockfrompeer.py index fd4d1992eb..8bd3366e36 100755 --- a/test/functional/rpc_getblockfrompeer.py +++ b/test/functional/rpc_getblockfrompeer.py @@ -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() |