-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Implement GetBeaconState Endpoint #5668
Merged
Merged
Changes from 3 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
d83bbfb
implement get beacon state
rauljordan 763fac2
gaz
rauljordan d7a62c1
Merge branch 'master' into implement-debug-state
rauljordan 39cbb9b
passing tests
rauljordan 95916a6
enable with featureconfig
rauljordan 99a0ad2
struct oder
rauljordan b4d0122
Update beacon-chain/rpc/beacon/state.go
rauljordan b3417f1
Merge refs/heads/master into implement-debug-state
prylabs-bulldozer[bot] 6e18a28
lint resolve
rauljordan f5c4706
Merge branch 'implement-debug-state' of github.com:prysmaticlabs/prys…
rauljordan 9f60d17
tested at runtime
rauljordan 5e2932b
fix build
rauljordan 7b2bda5
Merge branch 'master' into implement-debug-state
rauljordan 3171842
Merge refs/heads/master into implement-debug-state
prylabs-bulldozer[bot] 39e47d1
Merge refs/heads/master into implement-debug-state
prylabs-bulldozer[bot] 4f256ae
Merge refs/heads/master into implement-debug-state
prylabs-bulldozer[bot] 0bbf1ed
Merge refs/heads/master into implement-debug-state
prylabs-bulldozer[bot] 1a84ae0
Merge refs/heads/master into implement-debug-state
prylabs-bulldozer[bot] 6e0ec7e
build and fmt
rauljordan 1cbb61a
conf
rauljordan 2293439
Merge refs/heads/master into implement-debug-state
prylabs-bulldozer[bot] f3f527b
Merge refs/heads/master into implement-debug-state
prylabs-bulldozer[bot] 09ee03d
Merge refs/heads/master into implement-debug-state
prylabs-bulldozer[bot] 3d5fc25
Merge refs/heads/master into implement-debug-state
prylabs-bulldozer[bot] ca048dc
Merge refs/heads/master into implement-debug-state
prylabs-bulldozer[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package beacon | ||
|
||
import ( | ||
"context" | ||
|
||
pbp2p "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1" | ||
pbrpc "github.com/prysmaticlabs/prysm/proto/beacon/rpc/v1" | ||
//"google.golang.org/grpc/codes" | ||
//"google.golang.org/grpc/status" | ||
) | ||
|
||
// GetBeaconState -- | ||
func (bs *Server) GetBeaconState( | ||
ctx context.Context, | ||
req *pbrpc.BeaconStateRequest, | ||
) (*pbp2p.BeaconState, error) { | ||
|
||
//currentSlot := bs.GenesisTimeFetcher.CurrentSlot() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ? |
||
//var requestedSlot uint64 | ||
//switch q := req.QueryFilter.(type) { | ||
//case *ethpb.ListCommitteesRequest_Epoch: | ||
// requestedSlot = helpers.StartSlot(q.Epoch) | ||
//case *ethpb.ListCommitteesRequest_Genesis: | ||
// requestedSlot = 0 | ||
//default: | ||
// requestedSlot = currentSlot | ||
//} | ||
return nil, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unimplemented, still in progress