Skip to content

Commit a5ecce2

Browse files
authored
fix(async-ccc): print whole block hash and tx hash when failure (#1097)
* fix-async-ccc-print-whole-block-hash-and-tx-hash * chore: auto version bump [bot] * chore: auto version bump [bot] --------- Co-authored-by: colinlyguo <[email protected]>
1 parent 17ac3e6 commit a5ecce2

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
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
}

params/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
const (
2525
VersionMajor = 5 // Major version component of the current release
2626
VersionMinor = 7 // Minor version component of the current release
27-
VersionPatch = 27 // Patch version component of the current release
27+
VersionPatch = 28 // Patch version component of the current release
2828
VersionMeta = "mainnet" // Version metadata to append to the version string
2929
)
3030

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)