Skip to content

fix(net): harden sync message resource controls - #6966

Open
xxo1shine wants to merge 3 commits into
tronprotocol:developfrom
xxo1shine:fix/net-sync-message-validation
Open

fix(net): harden sync message resource controls#6966
xxo1shine wants to merge 3 commits into
tronprotocol:developfrom
xxo1shine:fix/net-sync-message-validation

Conversation

@xxo1shine

Copy link
Copy Markdown
Collaborator

What does this PR do?
Peer-derived sync state could bypass height validation, request rate limiting, and block-fetch deduplication at boundary conditions.

Reject invalid remain counts and overflowed heights, apply sync-chain rate limiting to every request, and size the block ID cache to cover the full valid fetch window.

Fixes #6942

Why are these changes required?

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

Peer-derived sync state could bypass height validation, request rate limiting, and block-fetch deduplication at boundary conditions.

Reject invalid remain counts and overflowed heights, apply sync-chain rate limiting to every request, and size the block ID cache to cover the full valid fetch window.
@github-actions
github-actions Bot requested a review from 317787106 September 11, 2026 07:27
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.

Harden sync message validation and resource controls

1 participant