From e56c679d7eb21c93b14d7b4cd2870ade0c8589bb Mon Sep 17 00:00:00 2001 From: Cal Bera Date: Tue, 30 Jan 2024 15:22:10 -0500 Subject: [PATCH] remove eth payload from prepare proposal --- cosmos/runtime/miner/abci.go | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/cosmos/runtime/miner/abci.go b/cosmos/runtime/miner/abci.go index b2da4acfc..2da9c146f 100644 --- a/cosmos/runtime/miner/abci.go +++ b/cosmos/runtime/miner/abci.go @@ -32,16 +32,16 @@ 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 { @@ -49,9 +49,10 @@ func (m *Miner) PrepareProposal( } // 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...) }