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

This commit is contained in:
Callum Waters
2021-01-12 16:44:42 +01:00
committed by Tess Rinearson
parent ad552b2bb1
commit cf3a720988
3 changed files with 9 additions and 6 deletions
+2 -1
View File
@@ -205,7 +205,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
}