From 4bece85f212d81c40cb623852ac116c5c01dbdc4 Mon Sep 17 00:00:00 2001 From: fx0x55 <80245546+fx0x55@users.noreply.github.com> Date: Thu, 17 Aug 2023 02:36:36 +0800 Subject: [PATCH] feat: add apphash to process proposal calls (#17401) Co-authored-by: Aleksandr Bezobchuk (cherry picked from commit a860919ca5ba1187e05171f6bec6c2e80aea0d6c) --- baseapp/abci.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/baseapp/abci.go b/baseapp/abci.go index 8ce81d336637..864c1b583bdd 100644 --- a/baseapp/abci.go +++ b/baseapp/abci.go @@ -400,6 +400,7 @@ func (app *BaseApp) PrepareProposal(req *abci.RequestPrepareProposal) (resp *abc Time: req.Time, ProposerAddress: req.ProposerAddress, NextValidatorsHash: req.NextValidatorsHash, + AppHash: app.LastCommitID().Hash, } app.setState(execModePrepareProposal, header) @@ -483,6 +484,7 @@ func (app *BaseApp) ProcessProposal(req *abci.RequestProcessProposal) (resp *abc Time: req.Time, ProposerAddress: req.ProposerAddress, NextValidatorsHash: req.NextValidatorsHash, + AppHash: app.LastCommitID().Hash, } app.setState(execModeProcessProposal, header)