Skip to content

cuprated: broadcast newly added alt blocks to peers#577

Open
redsh4de wants to merge 1 commit intoCuprate:mainfrom
redsh4de:feat/broadcast-alt-blocks
Open

cuprated: broadcast newly added alt blocks to peers#577
redsh4de wants to merge 1 commit intoCuprate:mainfrom
redsh4de:feat/broadcast-alt-blocks

Conversation

@redsh4de
Copy link

@redsh4de redsh4de commented Feb 5, 2026

What

Broadcasts newly cached alt blocks to peers

Closes #524

Why

Prevent nodes from initiating a sync if they don't have a alt block and the alt chain wins

Where

  • cuprated
    • blockchain/manager/handler.rs - split Cached bool in AddAltBlock into two variants - AlreadyCached and NewlyCached(bytes), which points to the block blob. Used in handle_incoming_block to determine whether the block is newly added, and broadcasts the block if it is

How

Effectively the same pattern as for main blocks

@github-actions github-actions bot added the A-binaries Area: Related to binaries. label Feb 5, 2026
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.

Broadcast new alt blocks

1 participant