Skip to content

Commit

Permalink
update apphash when update state
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitys7 committed Nov 6, 2023
1 parent 5a3670a commit d346ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion state/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down

0 comments on commit d346ada

Please sign in to comment.