Revert "dbg: print missing baseFee"

This commit is contained in:
Isma 2024-01-18 14:17:18 +01:00 committed by mortimr
parent 6975ac3af0
commit 4391fa20b6

View file

@ -10,6 +10,8 @@ import (
eth2client "github.com/attestantio/go-eth2-client"
"github.com/attestantio/go-eth2-client/api"
"github.com/redis/go-redis/v9"
"github.com/attestantio/go-eth2-client/http"
"github.com/rs/zerolog"
@ -215,8 +217,7 @@ func (me *MonitoringEngine) analyze(ctx context.Context, block *types.Block, sco
// We simulate all the transactions of the block
for idx, tx := range block.Transactions() {
state.SetTxContext(tx.Hash(), idx)
fmt.Println("HEADER BASE FEES", block.Header().BaseFee)
receipt, err := core.ApplyTransaction(me.chainConfig, me.backend.Ethereum().Blockchain(), &block.Header().Coinbase, gp, state, block.Header(), tx, &block.Header().GasUsed, vmConfig)
receipt, err := core.ApplyTransaction(me.chainConfig, me.backend.Ethereum().BlockChain(), &block.Header().Coinbase, gp, state, block.Header(), tx, &block.Header().GasUsed, vmConfig)
if err != nil {
me.errChan <- err
return nil