mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
fix: cl/beacon genesisResponse name (#8923)
This commit is contained in:
parent
036446777c
commit
3d9cb0494f
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user