File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ func (app *BaseApp) InitChain(req abci.RequestInitChain) (res abci.ResponseInitC
4343 }
4444
4545 // initialize the deliver state and check state with a correct header
46- app .setDeliverState (initHeader )
46+ app .SetDeliverState (initHeader )
4747 app .setCheckState (initHeader )
4848
4949 // Store the consensus params in the BaseApp's paramstore. Note, this must be
@@ -141,7 +141,7 @@ func (app *BaseApp) BeginBlock(req abci.RequestBeginBlock) (res abci.ResponseBeg
141141 // already be initialized in InitChain. Otherwise app.DeliverState will be
142142 // nil, since it is reset on Commit.
143143 if app .DeliverState == nil {
144- app .setDeliverState (req .Header )
144+ app .SetDeliverState (req .Header )
145145 } else {
146146 // In the first block, app.DeliverState.ctx will already be initialized
147147 // by InitChain. Context is now updated with Header information.
Original file line number Diff line number Diff line change @@ -424,11 +424,11 @@ func (app *BaseApp) setCheckState(header tmproto.Header) {
424424 }
425425}
426426
427- // setDeliverState sets the BaseApp's DeliverState with a branched multi-store
427+ // SetDeliverState sets the BaseApp's DeliverState with a branched multi-store
428428// (i.e. a CacheMultiStore) and a new Context with the same multi-store branch,
429429// and provided header. It is set on InitChain and BeginBlock and set to nil on
430430// Commit.
431- func (app * BaseApp ) setDeliverState (header tmproto.Header ) {
431+ func (app * BaseApp ) SetDeliverState (header tmproto.Header ) {
432432 ms := app .cms .CacheMultiStore ()
433433 app .DeliverState = & state {
434434 ms : ms ,
You can’t perform that action at this time.
0 commit comments