Repository navigation
Conversation
Contributor
|
ACK c4027e7 Ran |
| assert_equal(test_node.last_message["getdata"].inv[0].hash, block.sha256) | ||
|
|
||
| # Send back a compactblock message that omits the coinbase | ||
| comp_block = HeaderAndShortIDs() |
theStack
deleted the
20200424-test-use-wait_for_getdata-in-p2p_compactblocks
branch
December 1, 2020 09:55
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.
The method
wait_for_getdata()was recently changed to be more precise by waiting for a specified list of hashes, instead of only matching anygetdatamessage (see Issue #18614 and PR #18690). This PR replaces the remaining occurences of manual inspection oflast_messageswith this call.