From a48b69ea30ca8eb414773acae60c76a93d166689 Mon Sep 17 00:00:00 2001 From: Callum Waters Date: Tue, 30 Jul 2024 18:07:02 +0200 Subject: [PATCH] fix: initialising of check tx state (#411) --- baseapp/baseapp.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/baseapp/baseapp.go b/baseapp/baseapp.go index 75e84b9679a..4808345ac90 100644 --- a/baseapp/baseapp.go +++ b/baseapp/baseapp.go @@ -10,6 +10,7 @@ import ( "github.com/tendermint/tendermint/crypto/tmhash" "github.com/tendermint/tendermint/libs/log" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" + "github.com/tendermint/tendermint/proto/tendermint/version" dbm "github.com/tendermint/tm-db" codectypes "github.com/cosmos/cosmos-sdk/codec/types" @@ -408,7 +409,12 @@ func (app *BaseApp) Init() error { } // needed for the export command which inits from store but never calls initchain - app.setCheckState(tmproto.Header{}) + app.setCheckState(tmproto.Header{ + Version: version.Consensus{ + App: app.appVersion, + }, + Height: app.LastBlockHeight(), + }) app.Seal() if app.cms == nil {