Skip to content

Decouple validator from beacon node via traits#677

Open
bomanaps wants to merge 3 commits into
grandinetech:developfrom
bomanaps:validator-bn-separation
Open

Decouple validator from beacon node via traits#677
bomanaps wants to merge 3 commits into
grandinetech:developfrom
bomanaps:validator-bn-separation

Conversation

@bomanaps

@bomanaps bomanaps commented May 5, 2026

Copy link
Copy Markdown

Refactored the validator so it talks to the beacon node through a small set of trait objects (BeaconChainReader, BeaconDutyEndpoints, BeaconPublisher, BeaconEventStream) instead of poking pools, channels, and the controller directly. Behavior is identical every call still resolves to the same in-process function via the new LocalBeaconClient impl but the seam is now in place to drop in a remote HTTP client later without touching the validator again.

@bomanaps

bomanaps commented May 5, 2026

Copy link
Copy Markdown
Author

cc @ArtiomTr

Comment thread validator/src/validator.rs Outdated
Comment thread beacon_node_client/src/local.rs Outdated
Comment thread beacon_node_client/src/traits.rs Outdated
@bomanaps
bomanaps requested a review from ArtiomTr May 15, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants