Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
required
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Nov 6, 2023
1 parent b02c4f0 commit 50a0736
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cosmos/runtime/miner/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ func (m *Miner) PrepareProposal(

// We have to run the PreBlocker && BeginBlocker to get the chain into the state
// it'll be in when the EVM transaction actually runs.
if _, err = m.app.PreBlocker(ctx, nil); err != nil {
if _, err = m.app.PreBlocker(ctx, &abci.RequestFinalizeBlock{
Txs: req.Txs,
Time: req.Time,
Misbehavior: req.Misbehavior,
Height: req.Height,
NextValidatorsHash: req.NextValidatorsHash,
ProposerAddress: req.ProposerAddress,
}); err != nil {
return nil, err
} else if _, err = m.app.BeginBlocker(ctx); err != nil {
return nil, err
Expand Down

0 comments on commit 50a0736

Please sign in to comment.