Skip to content

Commit 2880bd5

Browse files
committed
add more logs
1 parent cfe6fd2 commit 2880bd5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

rollup/internal/controller/sender/estimategas.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ 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())
8586
gasLimit, accessList, err := s.estimateGasLimit(to, data, sidecar, nil, gasTipCap, gasFeeCap, blobGasFeeCap)
8687
if err != nil {
8788
log.Error("estimateBlobGas estimateGasLimit failure",

rollup/internal/controller/sender/sender.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,14 +834,18 @@ func (s *Sender) getBlockNumberAndTimestampAndBaseFeeAndBlobFee(ctx context.Cont
834834
return 0, 0, 0, 0, fmt.Errorf("failed to get header by number, err: %w", err)
835835
}
836836

837+
log.Warn("getBlockNumberAndTimestampAndBaseFeeAndBlobFee", "number", header.Number.Uint64())
838+
837839
var baseFee uint64
838840
if header.BaseFee != nil {
839841
baseFee = header.BaseFee.Uint64()
842+
log.Warn("getBlockNumberAndTimestampAndBaseFeeAndBlobFee", "baseFee", header.BaseFee.String(), "baseFeeUint64", baseFee)
840843
}
841844

842845
var blobBaseFee uint64
843846
if excess := header.ExcessBlobGas; excess != nil {
844847
blobBaseFee = misc.CalcBlobFee(*excess).Uint64()
848+
log.Warn("getBlockNumberAndTimestampAndBaseFeeAndBlobFee", "blobBaseFee", misc.CalcBlobFee(*excess).String(), "blobBaseFeeUint64", blobBaseFee)
845849
}
846850
// header.Number.Uint64() returns the pendingBlockNumber, so we minus 1 to get the latestBlockNumber.
847851
return header.Number.Uint64() - 1, header.Time, baseFee, blobBaseFee, nil

0 commit comments

Comments
 (0)