mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Update grpc/execution/server.go
Co-authored-by: noot <36753753+noot@users.noreply.github.com>
This commit is contained in:
parent
f1186c3a07
commit
fb1070040c
1 changed files with 1 additions and 1 deletions
|
|
@ -319,7 +319,7 @@ func (s *ExecutionServiceServerV1Alpha2) getBlockFromIdentifier(identifier *exec
|
||||||
var header *types.Header
|
var header *types.Header
|
||||||
|
|
||||||
// Grab the header based on the identifier provided
|
// Grab the header based on the identifier provided
|
||||||
switch id_type := identifier.Identifier.(type) {
|
switch idType := identifier.Identifier.(type) {
|
||||||
case *executionv1a2.BlockIdentifier_BlockNumber:
|
case *executionv1a2.BlockIdentifier_BlockNumber:
|
||||||
header = s.bc.GetHeaderByNumber(uint64(identifier.GetBlockNumber()))
|
header = s.bc.GetHeaderByNumber(uint64(identifier.GetBlockNumber()))
|
||||||
case *executionv1a2.BlockIdentifier_BlockHash:
|
case *executionv1a2.BlockIdentifier_BlockHash:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue