From a4b738f815b0ed550110989ce43de587dcc8cf3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Faruk=20Irmak?= Date: Fri, 6 Sep 2024 16:12:53 +0300 Subject: [PATCH] fix: skip ccc.ErrUnknown txns immediately (#1027) --- params/version.go | 2 +- rollup/ccc/async_checker.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/params/version.go b/params/version.go index 49858e1b9fb2..5979c032121e 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 = 10 // Patch version component of the current release + VersionPatch = 11 // Patch version component of the current release VersionMeta = "mainnet" // Version metadata to append to the version string ) diff --git a/rollup/ccc/async_checker.go b/rollup/ccc/async_checker.go index 0ac20fc4fdfa..1b1d2a09df59 100644 --- a/rollup/ccc/async_checker.go +++ b/rollup/ccc/async_checker.go @@ -191,7 +191,7 @@ func (c *AsyncChecker) checkerTask(block *types.Block, ccc *Checker, forkCtx con err: err, // if the txn is the first in block or the additional resource utilization caused // by this txn alone is enough to overflow the circuit, skip - ShouldSkip: txIdx == 0 || (curRc != nil && curRc.Difference(*accRc).IsOverflown()), + ShouldSkip: txIdx == 0 || curRc == nil || curRc.Difference(*accRc).IsOverflown(), AccRc: curRc, } return failingCallback