feat: add header hash to Context (#9390)

* baseapp, types: add header hash to

* changelog
This commit is contained in:
Federico Kunze
2021-05-26 08:36:42 +00:00
committed by GitHub
parent 61bd6cbd12
commit 151d6c5e97
4 changed files with 25 additions and 2 deletions
+2 -1
View File
@@ -164,7 +164,8 @@ func (app *BaseApp) BeginBlock(req abci.RequestBeginBlock) (res abci.ResponseBeg
// by InitChain. Context is now updated with Header information.
app.deliverState.ctx = app.deliverState.ctx.
WithBlockHeader(req.Header).
WithBlockHeight(req.Header.Height)
WithBlockHeight(req.Header.Height).
WithHeaderHash(req.Hash)
}
// add block gas meter