Repository navigation
test: Check object hashes in wait_for_getdata - #18690
Merged
Merged
Conversation
theStack
approved these changes
Apr 20, 2020
theStack
left a comment
Contributor
There was a problem hiding this comment.
Concept ACK
I think the two commits could be squashed into one
robot-visions
force-pushed
the
wait-for-getdata
branch
from
April 20, 2020 21:24
befb718 to
3692cab
Compare
Contributor
Author
|
Updated, thanks for the review! |
robot-visions
force-pushed
the
wait-for-getdata
branch
from
April 21, 2020 09:10
3692cab to
be3b733
Compare
Contributor
|
Could you rebase on master? |
robot-visions
force-pushed
the
wait-for-getdata
branch
from
April 22, 2020 18:02
be3b733 to
9f5608c
Compare
Contributor
Author
|
@theStack Rebased! |
theStack
approved these changes
Apr 23, 2020
Contributor
Author
|
Huge thanks @theStack @MarcoFalke for helping me to get my first PR merged :) |
Contributor
|
@robot-visions: Congratulations! 🎉 Have fun going down further the rabbit hole, may many more PRs follow (WARNING: working on Bitcoin Core can be addictive ;-)) |
maflcko
pushed a commit
that referenced
this pull request
Apr 24, 2020
…ocks.py c4027e7 refactor: test: use wait_for_getdata() in p2p_compactblocks.py (Sebastian Falbesoner) Pull request description: The method `wait_for_getdata()` was recently changed to be more precise by waiting for a specified list of hashes, instead of only matching _any_ `getdata` message (see Issue #18614 and PR #18690). This PR replaces the remaining occurences of manual inspection of `last_messages` with this call. ACKs for top commit: robot-visions: ACK c4027e7 Tree-SHA512: e10b346742f235b6ee2ef1f32f7fd74406c1a277389f020fb9913a93e94cc9530e1e9414872b83c9d2ae652ebce2b09b2c8c8372260c1afb4e0e54fbf7a935b0
Fabcien
pushed a commit
to Bitcoin-ABC/bitcoin-abc
that referenced
this pull request
Jan 20, 2021
Summary: > Previously, wait_for_getdata only looked for the presence of a recent "getdata" message. Additionally checking the object hashes inside the message should make tests involving wait_for_getdata more robust. > > p2p_sendheaders.py already overrides wait_for_getdata do this check; we can use the same approach consistently across all tests that call wait_for_getdata. This is a backport of Core [[bitcoin/bitcoin#18690 | PR18690]] Test Plan: `ninja check-functional` Reviewers: #bitcoin_abc, Fabien Reviewed By: #bitcoin_abc, Fabien Differential Revision: https://reviews.bitcoinabc.org/D8961
Fabcien
pushed a commit
to Bitcoin-ABC/bitcoin-abc
that referenced
this pull request
Jan 20, 2021
Summary: > The method `wait_for_getdata()` was recently changed to be more precise by waiting for a specified list of hashes, instead of only matching any getdata message (see [[bitcoin/bitcoin#18690 | PR18690]]). This PR replaces the remaining occurences of manual inspection of last_messages with this call. This is a backport of Core [[bitcoin/bitcoin#18756 | PR18756]] Test Plan: test/functional/test_runner.py p2p_compactblocks Reviewers: #bitcoin_abc, Fabien Reviewed By: #bitcoin_abc, Fabien Differential Revision: https://reviews.bitcoinabc.org/D8974
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously,
wait_for_getdataonly looked for the presence of a recent"getdata"message. Additionally checking the object hashes inside the message should make tests involvingwait_for_getdatamore robust.p2p_sendheaders.pyalready overrideswait_for_getdatado this check; we can use the same approach consistently across all tests that callwait_for_getdata.This PR is progress towards #18614 , but closing that issue would also involve some additional changes to
wait_for_getheaders.