Skip to content

peer: Remove deprecated PushGetBlocksMsg.#3703

Merged
davecgh merged 1 commit into
decred:masterfrom
davecgh:peer_remove_getblocksmsg
Jun 23, 2026
Merged

peer: Remove deprecated PushGetBlocksMsg.#3703
davecgh merged 1 commit into
decred:masterfrom
davecgh:peer_remove_getblocksmsg

Conversation

@davecgh

@davecgh davecgh commented Jun 4, 2026

Copy link
Copy Markdown
Member

The legacy getblocks protocol message hasn't been used for years since the syncing model was switched over to use headers-first semantics.

This removes the method for sending the message from the peer package, along with its associated tracking fields, since it has been deprecated for a long time and nothing actually uses it anymore.

However, the listener for the message is retained since the server is still required to handle and respond to the message even though, in practice, nothing really should be sending them anymore. Removing the protocol message and handling would require a new protocol version and following the protocol message deprecation and removal schedule.

@davecgh davecgh added this to the 2.2.0 milestone Jun 4, 2026
@davecgh davecgh force-pushed the peer_remove_getblocksmsg branch from e2dd062 to 61332d1 Compare June 4, 2026 10:53

@jholdstock jholdstock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ grep -ri "pushgetblocks" *
peer/doc.go:[Peer.PushAddrMsg], [Peer.PushGetBlocksMsg], and [Peer.PushGetHeadersMsg]
peer/doc.go:Finally, [Peer.PushGetBlocksMsg] and [Peer.PushGetHeadersMsg] will construct

Comment thread peer/peer.go Outdated
@davecgh davecgh force-pushed the peer_remove_getblocksmsg branch from 61332d1 to cbb125e Compare June 14, 2026 03:38
@davecgh

davecgh commented Jun 14, 2026

Copy link
Copy Markdown
Member Author
$ grep -ri "pushgetblocks" *
peer/doc.go:[Peer.PushAddrMsg], [Peer.PushGetBlocksMsg], and [Peer.PushGetHeadersMsg]
peer/doc.go:Finally, [Peer.PushGetBlocksMsg] and [Peer.PushGetHeadersMsg] will construct

Removed references.

@davecgh davecgh force-pushed the peer_remove_getblocksmsg branch from cbb125e to f6b178c Compare June 14, 2026 03:49
The legacy getblocks protocol message hasn't been used for years since
the syncing model was switched over to use headers-first semantics.

This removes the method for sending the message, along with its
associated tracking fields, since it has been deprecated for a long time
and nothing actually uses it anymore.

However, the listener for the message is retained since the server is
still required to handle and respond to the message even though, in
practice, nothing really should be sending them anymore.  Removing the
protocol message and handling would require a new protocol version and
following the protocol message deprecation and removal schedule.
@davecgh davecgh force-pushed the peer_remove_getblocksmsg branch from f6b178c to 79885a1 Compare June 23, 2026 14:43
@davecgh davecgh merged commit 79885a1 into decred:master Jun 23, 2026
32 checks passed
@davecgh davecgh deleted the peer_remove_getblocksmsg branch June 23, 2026 14:50
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.

3 participants