From 2f2c8ff33cc3e70d948d9659fbb85a77ed7de736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Friedemann=20F=C3=BCrst?= Date: Tue, 3 Sep 2024 15:03:46 +0200 Subject: [PATCH 1/2] Add node level OOC error --- core/chains/evm/client/errors.go | 2 +- core/chains/evm/client/errors_test.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/chains/evm/client/errors.go b/core/chains/evm/client/errors.go index 76411cb0407..6882cca524f 100644 --- a/core/chains/evm/client/errors.go +++ b/core/chains/evm/client/errors.go @@ -255,7 +255,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{ diff --git a/core/chains/evm/client/errors_test.go b/core/chains/evm/client/errors_test.go index 7d11279d32f..e6478060917 100644 --- a/core/chains/evm/client/errors_test.go +++ b/core/chains/evm/client/errors_test.go @@ -320,6 +320,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 { From 63c821bc29f5efce8b2e844d8357f14d8baed874 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Friedemann=20F=C3=BCrst?= Date: Tue, 3 Sep 2024 15:12:02 +0200 Subject: [PATCH 2/2] Add changeset --- .changeset/green-eagles-deliver.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/green-eagles-deliver.md diff --git a/.changeset/green-eagles-deliver.md b/.changeset/green-eagles-deliver.md new file mode 100644 index 00000000000..179b93b1080 --- /dev/null +++ b/.changeset/green-eagles-deliver.md @@ -0,0 +1,5 @@ +--- +"chainlink": patch +--- + +Handle zkEVM node level OOC error as TerminallyStuck #internal