Skip to content

cuprated: move SyncerHandle to BlockchainInterface#626

Open
redsh4de wants to merge 2 commits into
Cuprate:mainfrom
redsh4de:misc/syncer-to-bcinterface
Open

cuprated: move SyncerHandle to BlockchainInterface#626
redsh4de wants to merge 2 commits into
Cuprate:mainfrom
redsh4de:misc/syncer-to-bcinterface

Conversation

@redsh4de
Copy link
Copy Markdown
Contributor

@redsh4de redsh4de commented Jun 2, 2026

What

moves SyncerHandle to be accessable from BlockchainInterfac

Why

Symmetry. Syncer is spawned by the blockchain module, so it makes sense for it's handle to join the rest of the blockchain handle crew. Same way how syncer.rs is located in blockchain/

Where

cuprated

How

clone SyncerHandle into BlockchainInterface at construction and remove the field from Node. Embedders now should call node.blockchain.syncer() to get a clone of the handle. Longer but reads nicer too imo

@github-actions github-actions Bot added the A-binaries Area: Related to binaries. label Jun 2, 2026
@redsh4de redsh4de force-pushed the misc/syncer-to-bcinterface branch from abf2e7f to 8417c1f Compare June 2, 2026 19:29
@redsh4de redsh4de force-pushed the misc/syncer-to-bcinterface branch from 8417c1f to f1a057b Compare June 2, 2026 19:31
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.

2 participants