Skip to content

Loosen the constrains on BlockHeaders responses in ETH protocol #32105

@rjl493456442

Description

@rjl493456442

In snap sync, if the response to a GetBlockHeaders request does not meet the expected requirements, the corresponding peer will be dropped.

However, due to certain limitations, such as the peer not being fully aligned with the network head and slightly lagging behind, it may be unable to serve the request with the complete set of data.

Since the request is made without knowing how many headers the peer can actually provide, the peer dropping is actually not needed.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions