Skip to content

Commit

Permalink
Add node level OOC error (#14315)
Browse files Browse the repository at this point in the history
* Add node level OOC error

* Add changeset
  • Loading branch information
friedemannf authored and matYang committed Sep 19, 2024
1 parent 19d25f8 commit 97f6f55
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/green-eagles-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

Handle zkEVM node level OOC error as TerminallyStuck #internal
2 changes: 1 addition & 1 deletion core/chains/evm/client/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ var zkSync = ClientErrors{
}

var zkEvm = ClientErrors{
TerminallyStuck: regexp.MustCompile(`(?:: |^)not enough .* counters to continue the execution$`),
TerminallyStuck: regexp.MustCompile(`(?:: |^)(?:not enough .* counters to continue the execution|out of counters at node level (?:.*))$`),
}

var aStar = ClientErrors{
Expand Down
2 changes: 2 additions & 0 deletions core/chains/evm/client/errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ func Test_Eth_Errors(t *testing.T) {
{"failed to add tx to the pool: not enough step counters to continue the execution", true, "Xlayer"},
{"failed to add tx to the pool: not enough keccak counters to continue the execution", true, "zkEVM"},
{"failed to add tx to the pool: not enough keccak counters to continue the execution", true, "Xlayer"},
{"RPC error response: failed to add tx to the pool: out of counters at node level (Steps)", true, "zkEVM"},
{"RPC error response: failed to add tx to the pool: out of counters at node level (GasUsed, KeccakHashes, PoseidonHashes, PoseidonPaddings, MemAligns, Arithmetics, Binaries, Steps, Sha256Hashes)", true, "Xlayer"},
}

for _, test := range tests {
Expand Down

0 comments on commit 97f6f55

Please sign in to comment.