Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pcw109550 committed May 29, 2024
1 parent e657b1e commit c0e066e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erigon-lib/opstack/rollup_cost.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func NewL1CostFunc(config *chain.Config, statedb StateGetter) L1CostFunc {
if config.IsOptimismFjord(blockTime) {

log.Info("WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW")
log.Info("W", "l1BlobBaseFee", l1BlobBaseFee.String(), "l1BlobBaseFee", l1BlobBaseFee.String(),
log.Info("W", "l1BaseFee", l1BaseFee.String(), "l1BlobBaseFee", l1BlobBaseFee.String(),
"l1BaseFeeScalar", l1BaseFeeScalar.String(), "l1BlobBaseFeeScalar", l1BlobBaseFeeScalar.String())

return NewL1CostFuncFjord(
Expand Down Expand Up @@ -404,7 +404,7 @@ func NewL1CostFuncFjord(l1BaseFee, l1BlobBaseFee, baseFeeScalar, blobFeeScalar *
//estimatedSize = max(minTransactionSize, intercept + fastlzCoef*fastlzSize)
//l1Cost = estimatedSize * l1FeeScaled / 1e12

log.Info("W", "l1BlobBaseFee", l1BlobBaseFee.String(), "l1BlobBaseFee", l1BlobBaseFee.String(),
log.Info("W", "l1BaseFee", l1BaseFee.String(), "l1BlobBaseFee", l1BlobBaseFee.String(),
"baseFeeScalar", baseFeeScalar.String(), "blobFeeScalar", blobFeeScalar.String())

scaledL1BaseFee := new(uint256.Int).Mul(baseFeeScalar, l1BaseFee)
Expand Down

0 comments on commit c0e066e

Please sign in to comment.