diff --git a/api/api_types.go b/api/api_types.go index 54ca7ac90..f777bbb2d 100644 --- a/api/api_types.go +++ b/api/api_types.go @@ -206,6 +206,7 @@ type ChainInfo struct { ElectionCount uint64 `json:"electionCount" example:"120"` OrganizationCount uint64 `json:"organizationCount" example:"20"` GenesisTime time.Time `json:"genesisTime" format:"date-time" example:"2022-11-17T18:00:57.379551614Z"` + InitialHeight uint32 `json:"initialHeight" example:"5467"` Height uint32 `json:"height" example:"5467"` Syncing bool `json:"syncing" example:"true"` Timestamp int64 `json:"blockTimestamp" swaggertype:"string" format:"date-time" example:"2022-11-17T18:00:57.379551614Z"` diff --git a/api/chain.go b/api/chain.go index fec7b414a..20ab2529d 100644 --- a/api/chain.go +++ b/api/chain.go @@ -330,6 +330,7 @@ func (a *API) chainInfoHandler(_ *apirest.APIdata, ctx *httprouter.HTTPContext) Timestamp: a.vocapp.Timestamp(), VoteCount: voteCount, GenesisTime: a.vocapp.Genesis().GenesisTime, + InitialHeight: uint32(a.vocapp.Genesis().InitialHeight), CircuitVersion: circuit.Version(), MaxCensusSize: maxCensusSize, NetworkCapacity: networkCapacity,