Skip to content

Commit c178e2c

Browse files
committed
clean up
1 parent 8e9057a commit c178e2c

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

rollup/internal/controller/sender/estimategas.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ func (s *Sender) estimateBlobGas(to *common.Address, data []byte, sidecar *types
8282

8383
gasFeeCap := getGasFeeCap(new(big.Int).SetUint64(baseFee), gasTipCap)
8484
blobGasFeeCap := getBlobGasFeeCap(new(big.Int).SetUint64(blobBaseFee))
85-
log.Warn("estimateBlobGas", "blobBaseFee", blobBaseFee, "blobGasFeeCap", blobGasFeeCap.String())
8685
gasLimit, accessList, err := s.estimateGasLimit(to, data, sidecar, nil, gasTipCap, gasFeeCap, blobGasFeeCap)
8786
if err != nil {
8887
log.Error("estimateBlobGas estimateGasLimit failure",

rollup/internal/controller/sender/sender.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -836,12 +836,9 @@ func (s *Sender) getBlockNumberAndTimestampAndBaseFeeAndBlobFee(ctx context.Cont
836836
return 0, 0, 0, 0, fmt.Errorf("failed to get header by number, err: %w", err)
837837
}
838838

839-
log.Warn("getBlockNumberAndTimestampAndBaseFeeAndBlobFee", "number", header.Number.Uint64())
840-
841839
var baseFee uint64
842840
if header.BaseFee != nil {
843841
baseFee = header.BaseFee.Uint64()
844-
log.Warn("getBlockNumberAndTimestampAndBaseFeeAndBlobFee", "baseFee", header.BaseFee.String(), "baseFeeUint64", baseFee)
845842
}
846843

847844
// Leave it up to the L1 node to return the correct blob base fee.
@@ -853,8 +850,6 @@ func (s *Sender) getBlockNumberAndTimestampAndBaseFeeAndBlobFee(ctx context.Cont
853850
}
854851
blobBaseFee := hex.ToInt().Uint64()
855852

856-
log.Warn("getBlockNumberAndTimestampAndBaseFeeAndBlobFee", "blobBaseFeeUint64", blobBaseFee)
857-
858853
// header.Number.Uint64() returns the pendingBlockNumber, so we minus 1 to get the latestBlockNumber.
859854
return header.Number.Uint64() - 1, header.Time, baseFee, blobBaseFee, nil
860855
}

0 commit comments

Comments
 (0)