state sync: last consensus params height is not set (#5889)

This commit is contained in:
Callum Waters
2021-01-12 14:41:16 +01:00
committed by GitHub
parent 956b59af87
commit bada08c50c
3 changed files with 10 additions and 7 deletions

View File

@@ -222,7 +222,8 @@ func (store dbStore) Bootstrap(state State) error {
return err
}
if err := store.saveConsensusParamsInfo(height, height, state.ConsensusParams); err != nil {
if err := store.saveConsensusParamsInfo(height,
state.LastHeightConsensusParamsChanged, state.ConsensusParams); err != nil {
return err
}