Browse Source

Optimize: using parameters in func (#2845)

Signed-off-by: Zeyu Zhu <zhuzeyu0409@gmail.com>
pull/2849/head
Zeyu Zhu 6 years ago
committed by Anton Kaliaev
parent
commit
a70a53254d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      state/store.go

+ 1
- 1
state/store.go View File

@ -96,7 +96,7 @@ func saveState(db dbm.DB, state State, key []byte) {
saveValidatorsInfo(db, nextHeight+1, state.LastHeightValidatorsChanged, state.NextValidators)
// Save next consensus params.
saveConsensusParamsInfo(db, nextHeight, state.LastHeightConsensusParamsChanged, state.ConsensusParams)
db.SetSync(stateKey, state.Bytes())
db.SetSync(key, state.Bytes())
}
//------------------------------------------------------------------------


Loading…
Cancel
Save