From 30e265bfc92550111ecd8661161685a8a618cbf8 Mon Sep 17 00:00:00 2001 From: jay tseng Date: Fri, 18 Mar 2022 11:01:32 -0400 Subject: [PATCH] update the app version to the consensus param at the initial state --- internal/consensus/replay.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/consensus/replay.go b/internal/consensus/replay.go index 81c21c5f0..10df0cd10 100644 --- a/internal/consensus/replay.go +++ b/internal/consensus/replay.go @@ -262,6 +262,7 @@ func (h *Handshaker) Handshake(ctx context.Context, appClient abciclient.Client) // Only set the version if there is no existing state. if h.initialState.LastBlockHeight == 0 { h.initialState.Version.Consensus.App = res.AppVersion + h.initialState.ConsensusParams.Version.AppVersion = res.AppVersion } // Replay blocks up to the latest in the blockstore.