From 8db1f4ccea0b52939a9e674ba3080691ce349760 Mon Sep 17 00:00:00 2001 From: oXtxNt9U <120286271+oXtxNt9U@users.noreply.github.com> Date: Mon, 20 Jan 2025 18:24:36 +0900 Subject: [PATCH] fix(api-sync): out of gas during rounds restore (#827) * use higher gas limit when calling `getRounds` * fix lint * style: resolve style guide violations --- packages/evm-consensus/source/services/rounds-iterator.ts | 3 ++- packages/evm/bindings/src/lib.rs | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/evm-consensus/source/services/rounds-iterator.ts b/packages/evm-consensus/source/services/rounds-iterator.ts index 8860164c2..b2e7b3754 100644 --- a/packages/evm-consensus/source/services/rounds-iterator.ts +++ b/packages/evm-consensus/source/services/rounds-iterator.ts @@ -7,7 +7,7 @@ import { ethers } from "ethers"; import { Identifiers as EvmConsensusIdentifiers } from "../identifiers.js"; -const ROUNDS_PER_REQUEST = 10_000; +const ROUNDS_PER_REQUEST = 1000; @injectable() export class AsyncValidatorRoundsIterator implements AsyncIterable { @@ -55,6 +55,7 @@ export class AsyncValidatorRoundsIterator implements AsyncIterable