Skip to content

cuprated: broadcast block before notifying txpool#597

Open
redsh4de wants to merge 1 commit intoCuprate:mainfrom
redsh4de:feat/broadcast-before-txpool
Open

cuprated: broadcast block before notifying txpool#597
redsh4de wants to merge 1 commit intoCuprate:mainfrom
redsh4de:feat/broadcast-before-txpool

Conversation

@redsh4de
Copy link
Copy Markdown
Contributor

@redsh4de redsh4de commented Apr 9, 2026

What

Closes #541

Why

Faster block propagation

Where

cuprated

How

Move the block_blob extraction and broadcast_block call inside add_valid_block_to_main_chain, between the DB write and the txpool notification. Add a BlockSource parameter naming each of the three call paths (Incoming, BatchSync, Reorg) - only Incoming triggers the broadcast.

@github-actions github-actions Bot added the A-binaries Area: Related to binaries. label Apr 9, 2026
@redsh4de redsh4de force-pushed the feat/broadcast-before-txpool branch from 8f6e6b3 to f652eea Compare April 20, 2026 02:47
@redsh4de redsh4de force-pushed the feat/broadcast-before-txpool branch from f652eea to 9af98c8 Compare April 22, 2026 08:20
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 blocks before removing txs from the pool

1 participant