Browse Source

update the app version to the consensus param at the initial state

pull/8151/head
jay tseng 3 years ago
parent
commit
30e265bfc9
No known key found for this signature in database GPG Key ID: 5A9D3063305E6427
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      internal/consensus/replay.go

+ 1
- 0
internal/consensus/replay.go View File

@ -262,6 +262,7 @@ func (h *Handshaker) Handshake(ctx context.Context, appClient abciclient.Client)
// Only set the version if there is no existing state. // Only set the version if there is no existing state.
if h.initialState.LastBlockHeight == 0 { if h.initialState.LastBlockHeight == 0 {
h.initialState.Version.Consensus.App = res.AppVersion h.initialState.Version.Consensus.App = res.AppVersion
h.initialState.ConsensusParams.Version.AppVersion = res.AppVersion
} }
// Replay blocks up to the latest in the blockstore. // Replay blocks up to the latest in the blockstore.


Loading…
Cancel
Save