mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
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 <colinlyguo@users.noreply.github.com>
This commit is contained in:
parent
17ac3e67a9
commit
a5ecce2dc3
3 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue