Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release-v2.0] main: Use backported peer updates. #3350

Merged
merged 3 commits into from
Jun 4, 2024

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Jun 4, 2024

This updates the 2.0 release branch to use the latest version of the peer module which includes updates to immediately hash mix messages when they are read from the wire and to include mix message summaries in the debug logging output.

In particular, the following updated module version is used:

  • github.com/decred/dcrd/peer/v3@v3.1.1

Note that it also cherry picks all of the commits included in updates to the peer/v3 module to ensure they are also included in the release branch even though it is not strictly necessary since go.mod has been updated to require the new peer/v3.1.1 release and thus will pull in the new code. However, from past experience, not having code backported to modules available in the release branch too leads to headaches for devs building from source in their local workspace with overrides such as those in go.work.

jrick and others added 3 commits June 4, 2024 14:06
When a mixing message (implementing the WriteHash(hash.Hash) method) is read
from another peer, it is improper to use its Hash() method before calculating
and storing the hash using WriteHash.  Do this as early as possible in
readMessage in the peer package.  This avoids the need for callers to remember
to do this step manually in the OnMix* callbacks.
This includes the message hash and the sender's identity in the short
human-readable description of peer messages as they are debug logged.

While here and because mixing introduced a new inventory vector type, add it
to the inv summary case statement.
This updates the 2.0 release branch to use the latest version of the
peer module which includes updates to immediately hash mix messages when
they are read from the wire and to include mix message summaries in the
debug logging output.

In particular, the following updated module version is used:

- github.com/decred/dcrd/peer/v3@v3.1.1
@davecgh davecgh added this to the 2.0.2 milestone Jun 4, 2024
@davecgh davecgh merged commit 62dc11f into decred:release-v2.0 Jun 4, 2024
2 checks passed
@davecgh davecgh deleted the rel20_peer_backports branch June 4, 2024 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants