Skip to content

cuprated: ignore fluffy blocks older than 10 blocks#583

Merged
Boog900 merged 2 commits intoCuprate:mainfrom
redsh4de:feat/ignore-old-fluffy-blocks
Feb 14, 2026
Merged

cuprated: ignore fluffy blocks older than 10 blocks#583
Boog900 merged 2 commits intoCuprate:mainfrom
redsh4de:feat/ignore-old-fluffy-blocks

Conversation

@redsh4de
Copy link
Contributor

What

Closes #581

Why

Unlike monerod, Cuprate relays old alt blocks. Without this change, peers may receive fluffy blocks for old alt chains that are no longer relevant

Where

cuprated/src/p2p/request_handler.rs

How

Before processing a fluffy block, check if the block's reported height is more than 10 blocks behind chain height. If so, return early with ProtocolResponse::NA. Copies the pattern used in new_transactions for ignoring transactions when we are too far behind a peer.

@github-actions github-actions bot added the A-binaries Area: Related to binaries. label Feb 13, 2026
@redsh4de redsh4de requested a review from Boog900 February 14, 2026 06:53
@Boog900 Boog900 merged commit adbded5 into Cuprate:main Feb 14, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-binaries Area: Related to binaries.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ignore alt blocks from peers when the block is too old

2 participants