From a5ecce2dc3338bb44896c1dc565c59d514d3467a Mon Sep 17 00:00:00 2001 From: colin <102356659+colinlyguo@users.noreply.github.com> Date: Fri, 6 Dec 2024 16:06:35 +0700 Subject: [PATCH] fix(async-ccc): print whole block hash and tx hash when failure (#1097) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix-async-ccc-print-whole-block-hash-and-tx-hash * chore: auto version bump [bot] * chore: auto version bump [bot] --------- Co-authored-by: colinlyguo --- eth/backend.go | 2 +- params/version.go | 2 +- rollup/pipeline/pipeline.go | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/eth/backend.go b/eth/backend.go index ae198bceef..4c7b024f49 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -202,7 +202,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) } diff --git a/params/version.go b/params/version.go index 76862a755a..e38da258a2 100644 --- a/params/version.go +++ b/params/version.go @@ -24,7 +24,7 @@ import ( const ( VersionMajor = 5 // Major version component of the current release VersionMinor = 7 // Minor version component of the current release - VersionPatch = 27 // Patch version component of the current release + VersionPatch = 28 // Patch version component of the current release VersionMeta = "mainnet" // Version metadata to append to the version string ) diff --git a/rollup/pipeline/pipeline.go b/rollup/pipeline/pipeline.go index 12c34e2c96..90c6149b38 100644 --- a/rollup/pipeline/pipeline.go +++ b/rollup/pipeline/pipeline.go @@ -439,6 +439,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.Warn("failed to apply CCC", "txHash", lastTxn.Hash().Hex(), "err", err) resultCh <- &Result{ OverflowingTx: lastTxn, OverflowingTrace: candidate.LastTrace,