fix: cl/beacon genesisResponse name (#8923)

This commit is contained in:
ddl 2023-12-11 11:08:00 +08:00 committed by GitHub
parent 036446777c
commit 3d9cb0494f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ import (
"github.com/ledgerwatch/erigon/cl/fork" "github.com/ledgerwatch/erigon/cl/fork"
) )
type genesisReponse struct { type genesisResponse struct {
GenesisTime uint64 `json:"genesis_time,omitempty"` GenesisTime uint64 `json:"genesis_time,omitempty"`
GenesisValidatorRoot common.Hash `json:"genesis_validator_root,omitempty"` GenesisValidatorRoot common.Hash `json:"genesis_validator_root,omitempty"`
GenesisForkVersion libcommon.Bytes4 `json:"genesis_fork_version,omitempty"` GenesisForkVersion libcommon.Bytes4 `json:"genesis_fork_version,omitempty"`
@ -25,7 +25,7 @@ func (a *ApiHandler) getGenesis(r *http.Request) (*beaconResponse, error) {
return nil, err return nil, err
} }
return newBeaconResponse(&genesisReponse{ return newBeaconResponse(&genesisResponse{
GenesisTime: a.genesisCfg.GenesisTime, GenesisTime: a.genesisCfg.GenesisTime,
GenesisValidatorRoot: a.genesisCfg.GenesisValidatorRoot, GenesisValidatorRoot: a.genesisCfg.GenesisValidatorRoot,
GenesisForkVersion: digest, GenesisForkVersion: digest,