Skip to content

Commit

Permalink
fix: nil-check curRc (#1024)
Browse files Browse the repository at this point in the history
* fix: nil-check curRc

* chore: auto version bump [bot]

---------

Co-authored-by: omerfirmak <omerfirmak@users.noreply.github.com>
  • Loading branch information
omerfirmak and omerfirmak authored Sep 5, 2024
1 parent bdb1ffb commit bf5cca7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = 9 // Patch version component of the current release
VersionPatch = 10 // Patch version component of the current release
VersionMeta = "mainnet" // Version metadata to append to the version string
)

Expand Down
2 changes: 1 addition & 1 deletion rollup/ccc/async_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.Difference(*accRc).IsOverflown(),
ShouldSkip: txIdx == 0 || (curRc != nil && curRc.Difference(*accRc).IsOverflown()),
AccRc: curRc,
}
return failingCallback
Expand Down

0 comments on commit bf5cca7

Please sign in to comment.