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

Add beacon state methods in the RPC protocol #36

Open
ajoydas opened this issue Jul 21, 2019 · 2 comments
Open

Add beacon state methods in the RPC protocol #36

ajoydas opened this issue Jul 21, 2019 · 2 comments

Comments

@ajoydas
Copy link

ajoydas commented Jul 21, 2019

Is your feature request related to a problem? Please describe.
Currently in Hobbits, there is no way to get the beacon states from the connected peers. We need the beacon state information in the syncing process for storing the LatestStateRoot, FinalizedStateRoot and JustifiedStateRoot. This is how lodestar uses the beacon state info in the initial syncing process.

Describe the solution you'd like
Add 2 methods in the RPC protocol like Get_Beacon_States

{
    'hashes' : '[]bytes32' 
}

and Beacon_States

{
    'states' : '[]BeaconState`
}
@ajoydas ajoydas changed the title Add beacon states methods in the RPC protocol Add beacon state methods in the RPC protocol Jul 21, 2019
@ajoydas ajoydas changed the title Add beacon state methods in the RPC protocol Add beacon state methods in the RPC protocol Jul 21, 2019
@decanus
Copy link

decanus commented Jul 21, 2019

@ajoydas, would you like to create a PR for this?

@ajoydas
Copy link
Author

ajoydas commented Jul 21, 2019

@ajoydas, would you like to create a PR for this?

Yes.

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

No branches or pull requests

2 participants