Skip to content

cuprated: move SyncerHandle to BlockchainInterface#626

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

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

Conversation

@redsh4de

@redsh4de redsh4de commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

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 2 times, most recently from 8417c1f to f1a057b Compare June 2, 2026 19:31
@redsh4de redsh4de force-pushed the misc/syncer-to-bcinterface branch from f1a057b to fa1c7ec Compare June 10, 2026 10:02
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