diff --git a/erigon-lib/opstack/rollup_cost.go b/erigon-lib/opstack/rollup_cost.go index 0e726c23dfa..ef8acd78790 100644 --- a/erigon-lib/opstack/rollup_cost.go +++ b/erigon-lib/opstack/rollup_cost.go @@ -115,7 +115,9 @@ func NewL1CostFunc(config *chain.Config, statedb StateGetter) L1CostFunc { forBlock := ^uint64(0) var cachedFunc l1CostFunc selectFunc := func(blockTime uint64) l1CostFunc { + log.Info("AAAA", "blockTime", blockTime, "ecotoneTime", config.EcotoneTime.String(), "fjordTime", config.FjordTime.String()) if !config.IsOptimismEcotone(blockTime) { + log.Info("AAAAAAA", "blockTime", blockTime, "newL1CostFuncPreEcotone", "newL1CostFuncPreEcotone") return newL1CostFuncPreEcotone(config, statedb, blockTime) } @@ -136,6 +138,7 @@ func NewL1CostFunc(config *chain.Config, statedb StateGetter) L1CostFunc { firstEcotoneBlock := l1BlobBaseFee.BitLen() == 0 && bytes.Equal(emptyScalars, l1FeeScalars[scalarSectionStart:scalarSectionStart+8]) if firstEcotoneBlock { + log.Info("AAAAAAA", "blockTime", blockTime, "newL1CostFuncPreEcotone using pre-ecotone l1 cost func for first Ecotone block", "newL1CostFuncPreEcotone") log.Info("using pre-ecotone l1 cost func for first Ecotone block", "time", blockTime) return newL1CostFuncPreEcotone(config, statedb, blockTime) } @@ -143,7 +146,7 @@ func NewL1CostFunc(config *chain.Config, statedb StateGetter) L1CostFunc { l1BaseFeeScalar, l1BlobBaseFeeScalar := extractEcotoneFeeParams(l1FeeScalars[:]) if config.IsOptimismFjord(blockTime) { - + log.Info("AAAAAAA", "blockTime", blockTime, "NewL1CostFuncFjord", "NewL1CostFuncFjord") log.Info("WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW") log.Info("W", "l1BaseFee", l1BaseFee.String(), "l1BlobBaseFee", l1BlobBaseFee.String(), "l1BaseFeeScalar", l1BaseFeeScalar.String(), "l1BlobBaseFeeScalar", l1BlobBaseFeeScalar.String()) @@ -155,6 +158,7 @@ func NewL1CostFunc(config *chain.Config, statedb StateGetter) L1CostFunc { l1BlobBaseFeeScalar, ) } else { + log.Info("AAAAAAA", "blockTime", blockTime, "newL1CostFuncEcotone", "newL1CostFuncEcotone") return newL1CostFuncEcotone(&l1BaseFee, &l1BlobBaseFee, l1BaseFeeScalar, l1BlobBaseFeeScalar) } }