github.com/line/ostracon@v1.0.10-0.20230328032236-7f20145f065d/spec/core/state.md (about) 1 # State 2 3 Please ensure you've first read the spec for [CometBFT State](https://github.com/cometbft/cometbft/blob/v0.34.x/spec/core/state.md). Here only defines the difference between CometBFT. 4 5 Ostracon adds `LastProofHash` to state. `LastProofHash` is used by proposer selection in the current height. 6 7 ```go 8 type State struct { 9 ChainID string 10 InitialHeight int64 11 12 LastBlockHeight int64 13 LastBlockID types.BlockID 14 LastBlockTime time.Time 15 16 Version Version 17 LastResults []Result 18 AppHash []byte 19 20 LastValidators ValidatorSet 21 Validators ValidatorSet 22 NextValidators ValidatorSet 23 24 ConsensusParams ConsensusParams 25 26 LastProofHash []byte 27 } 28 ```