Skip to content

Commit

Permalink
fix(eth backend): print whole block hash
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Nov 25, 2024
1 parent a6a0344 commit ada38c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func New(stack *node.Node, config *ethconfig.Config, l1Client sync_service.EthCl
if config.CheckCircuitCapacity {
eth.asyncChecker = ccc.NewAsyncChecker(eth.blockchain, config.CCCMaxWorkers, false)
eth.asyncChecker.WithOnFailingBlock(func(b *types.Block, err error) {
log.Warn("block failed CCC check, it will be reorged by the sequencer", "hash", b.Hash(), "err", err)
log.Warn("block failed CCC check, it will be reorged by the sequencer", "hash", b.Hash().Hex(), "err", err)
})
eth.blockchain.Validator().WithAsyncValidator(eth.asyncChecker.Check)
}
Expand Down
1 change: 1 addition & 0 deletions rollup/pipeline/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ func (p *Pipeline) cccStage(candidates <-chan *BlockCandidate, deadline time.Tim
lastTxn := candidate.Txs[candidate.Txs.Len()-1]
cccTimer.UpdateSince(cccStart)
if err != nil {
log.Info("failed to apply CCC", "txHash", lastTxn.Hash().Hex(), "err", err)
resultCh <- &Result{
OverflowingTx: lastTxn,
OverflowingTrace: candidate.LastTrace,
Expand Down

0 comments on commit ada38c3

Please sign in to comment.