dbg: print missing baseFee

Signed-off-by: Isma <71719097+Doozers@users.noreply.github.com>
This commit is contained in:
Isma 2024-01-18 14:07:40 +01:00 committed by mortimr
parent b54d49a318
commit 6975ac3af0

View file

@ -10,8 +10,6 @@ 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"
@ -217,7 +215,8 @@ 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)
receipt, err := core.ApplyTransaction(me.chainConfig, me.backend.Ethereum().BlockChain(), &block.Header().Coinbase, gp, state, block.Header(), tx, &block.Header().GasUsed, vmConfig)
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)
if err != nil {
me.errChan <- err
return nil