Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: move ForkChoice reads to BeaconChain #677

Merged
merged 5 commits into from
Jan 25, 2024

Conversation

MegaRedHand
Copy link
Collaborator

This PR copies justified and finalized information to BeaconChain, removing read operations on this data from ForkChoice

@MegaRedHand MegaRedHand requested a review from a team as a code owner January 23, 2024 19:46
@MegaRedHand MegaRedHand self-assigned this Jan 23, 2024
%{finalized_root: root, finalized_epoch: epoch} =
GenServer.call(__MODULE__, :get_fork_choice_cache)

%Checkpoint{root: root, epoch: epoch}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we rather store it as a checkpoint then?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

mpaulucci
mpaulucci previously approved these changes Jan 24, 2024
@MegaRedHand MegaRedHand merged commit 736d757 into main Jan 25, 2024
11 checks passed
@MegaRedHand MegaRedHand deleted the move-reads-to-beacon-chain branch January 25, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants