From d346adac55655ab8f2f1a4bd89cec2402eabd5c1 Mon Sep 17 00:00:00 2001 From: trinitys7 Date: Mon, 6 Nov 2023 16:14:47 +0700 Subject: [PATCH] update apphash when update state --- state/executor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state/executor.go b/state/executor.go index 13db53ee702..33fb4ac706a 100644 --- a/state/executor.go +++ b/state/executor.go @@ -229,7 +229,7 @@ func (e *BlockExecutor) updateState(state types.State, block *types.Block, abciR LastHeightValidatorsChanged: lastHeightValSetChanged, ConsensusParams: state.ConsensusParams, LastHeightConsensusParamsChanged: state.LastHeightConsensusParamsChanged, - AppHash: make(types.Hash, 32), + AppHash: state.AppHash, } copy(s.LastResultsHash[:], cmtypes.NewResults(abciResponses.DeliverTxs).Hash())