decred / dcrd

Decred daemon in Go (golang).
https://decred.org
ISC License
731 stars 289 forks source link

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

Closed davecgh closed 1 month ago

davecgh commented 1 month ago

This updates the 2.0 release branch to use the latest version of the peer module which includes updates to improve the privacy propagation speed of inventory announcements as well as expire known inventory cache entries after a timeout.

In particular, the following updated module version is used:

Note that it also cherry picks all of the commits included in updates to the peer/v3 module and the new dependency modules those updates rely on (container/lru and crypto/rand) 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.2 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.