Skip to content

Commit

Permalink
fix(api-sync): out of gas during rounds restore (#827)
Browse files Browse the repository at this point in the history
* use higher gas limit when calling `getRounds`

* fix lint

* style: resolve style guide violations
  • Loading branch information
oXtxNt9U authored Jan 20, 2025
1 parent f8da848 commit 8db1f4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/evm-consensus/source/services/rounds-iterator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Contracts.Evm.ValidatorRound> {
Expand Down Expand Up @@ -55,6 +55,7 @@ export class AsyncValidatorRoundsIterator implements AsyncIterable<Contracts.Evm
const result = await this.evm.view({
caller: deployerAddress,
data: Buffer.from(data, "hex"),
gasLimit: 100_000_000n,
recipient: consensusContractAddress,
specId: evmSpec,
});
Expand Down
4 changes: 1 addition & 3 deletions packages/evm/bindings/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ use mainsail_evm_core::{
};
use napi::{bindgen_prelude::*, JsBigInt, JsObject, JsString};
use napi_derive::napi;
use result::{
CommitResult, JsAccountInfoExtended, JsTransactionReceipt, PreverifyTxResult, TxViewResult,
};
use result::{CommitResult, JsAccountInfoExtended, PreverifyTxResult, TxViewResult};
use revm::interpreter::Host;

use revm::{
Expand Down

0 comments on commit 8db1f4c

Please sign in to comment.