docs(ccc): add more logs for skipping msg (#490)

* docs(ccc): add more logs for skipping msg

* bump version

* format codes

* improve
This commit is contained in:
HAOYUatHZ 2023-08-29 08:05:27 +08:00 committed by GitHub
parent d650299a36
commit f883dcdc21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -1071,6 +1071,7 @@ loop:
// though it might still be possible to add some "smaller" txs, // though it might still be possible to add some "smaller" txs,
// but it's a trade-off between tracing overhead & block usage rate // but it's a trade-off between tracing overhead & block usage rate
log.Trace("Circuit capacity limit reached in a block", "acc_rows", w.current.accRows, "tx", tx.Hash().String()) log.Trace("Circuit capacity limit reached in a block", "acc_rows", w.current.accRows, "tx", tx.Hash().String())
log.Info("Skipping message", "tx", tx.Hash().String(), "block", w.current.header.Number, "reason", "accumulated row consumption overflow")
circuitCapacityReached = true circuitCapacityReached = true
break loop break loop
} else { } else {
@ -1083,10 +1084,11 @@ loop:
txs.Shift() txs.Shift()
queueIndex := tx.AsL1MessageTx().QueueIndex queueIndex := tx.AsL1MessageTx().QueueIndex
log.Info("Skipping L1 message", "queueIndex", queueIndex, "tx", tx.Hash().String(), "block", w.current.header.Number, "reason", "row consumption overflow") log.Info("Skipping L1 message", "queueIndex", queueIndex, "tx", tx.Hash().String(), "block", w.current.header.Number, "reason", "first tx row consumption overflow")
w.current.nextL1MsgIndex = queueIndex + 1 w.current.nextL1MsgIndex = queueIndex + 1
} else { } else {
// Skip L2 transaction and all other transactions from the same sender account // Skip L2 transaction and all other transactions from the same sender account
log.Info("Skipping L2 message", "tx", tx.Hash().String(), "block", w.current.header.Number, "reason", "first tx row consumption overflow")
txs.Pop() txs.Pop()
} }
@ -1118,6 +1120,7 @@ loop:
case (errors.Is(err, circuitcapacitychecker.ErrUnknown) && !tx.IsL1MessageTx()): case (errors.Is(err, circuitcapacitychecker.ErrUnknown) && !tx.IsL1MessageTx()):
// Circuit capacity check: unknown circuit capacity checker error for L2MessageTx, skip the account // Circuit capacity check: unknown circuit capacity checker error for L2MessageTx, skip the account
log.Trace("Unknown circuit capacity checker error for L2MessageTx", "tx", tx.Hash().String()) log.Trace("Unknown circuit capacity checker error for L2MessageTx", "tx", tx.Hash().String())
log.Info("Skipping L2 message", "tx", tx.Hash().String(), "block", w.current.header.Number, "reason", "unknown row consumption error")
// Normally we would do `txs.Pop()` here. // Normally we would do `txs.Pop()` here.
// However, after `ErrUnknown`, ccc might remain in an // However, after `ErrUnknown`, ccc might remain in an

View file

@ -24,7 +24,7 @@ import (
const ( const (
VersionMajor = 4 // Major version component of the current release VersionMajor = 4 // Major version component of the current release
VersionMinor = 3 // Minor version component of the current release VersionMinor = 3 // Minor version component of the current release
VersionPatch = 54 // Patch version component of the current release VersionPatch = 55 // Patch version component of the current release
VersionMeta = "sepolia" // Version metadata to append to the version string VersionMeta = "sepolia" // Version metadata to append to the version string
) )