Skip to content

Commit bd7b91e

Browse files
author
colinlyguo
committed
fix-async-ccc-print-whole-block-hash-and-tx-hash
1 parent d2fe42b commit bd7b91e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

eth/backend.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func New(stack *node.Node, config *ethconfig.Config, l1Client sync_service.EthCl
202202
if config.CheckCircuitCapacity {
203203
eth.asyncChecker = ccc.NewAsyncChecker(eth.blockchain, config.CCCMaxWorkers, false)
204204
eth.asyncChecker.WithOnFailingBlock(func(b *types.Block, err error) {
205-
log.Warn("block failed CCC check, it will be reorged by the sequencer", "hash", b.Hash(), "err", err)
205+
log.Warn("block failed CCC check, it will be reorged by the sequencer", "hash", b.Hash().Hex(), "err", err)
206206
})
207207
eth.blockchain.Validator().WithAsyncValidator(eth.asyncChecker.Check)
208208
}

rollup/pipeline/pipeline.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ func (p *Pipeline) cccStage(candidates <-chan *BlockCandidate, deadline time.Tim
439439
lastTxn := candidate.Txs[candidate.Txs.Len()-1]
440440
cccTimer.UpdateSince(cccStart)
441441
if err != nil {
442+
log.Warn("failed to apply CCC", "txHash", lastTxn.Hash().Hex(), "err", err)
442443
resultCh <- &Result{
443444
OverflowingTx: lastTxn,
444445
OverflowingTrace: candidate.LastTrace,

0 commit comments

Comments
 (0)