Skip to content

Commit

Permalink
fix: initialising of check tx state (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmwaters committed Jul 30, 2024
1 parent 0dc27d4 commit a48b69e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit a48b69e

Please sign in to comment.