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

Commit

Permalink
remove eth payload from prepare proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
calbera committed Jan 30, 2024
1 parent 41657e0 commit e56c679
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions cosmos/runtime/miner/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,27 @@ func (m *Miner) PrepareProposal(
ctx sdk.Context, req *abci.RequestPrepareProposal,
) (*abci.ResponsePrepareProposal, error) {
var (
payloadEnvelopeBz []byte
err error
valTxs [][]byte
ethGasUsed uint64
// payloadEnvelopeBz []byte
err error
valTxs [][]byte
ethGasUsed uint64
)

// Trigger the geth miner to build a block.
if payloadEnvelopeBz, ethGasUsed, err = m.buildBlock(ctx); err != nil {
return nil, err
}
// // Trigger the geth miner to build a block.
// if payloadEnvelopeBz, ethGasUsed, err = m.buildBlock(ctx); err != nil {
// return nil, err
// }

// Process the validator messages.
if valTxs, err = m.processValidatorMsgs(ctx, req.MaxTxBytes, ethGasUsed, req.Txs); err != nil {
return nil, err
}

// Combine the payload envelope with the validator transactions.
allTxs := [][]byte{payloadEnvelopeBz}
// allTxs := [][]byte{payloadEnvelopeBz}

// If there are validator transactions, append them to the allTxs slice.
allTxs := [][]byte{}
if len(valTxs) > 0 {
allTxs = append(allTxs, valTxs...)
}
Expand Down

0 comments on commit e56c679

Please sign in to comment.