Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Commit fd98d20

Browse files
committed
Upgrade to Contact 0.4.2 and Web30 0.10.8
This patch updates to the latest contact version. Fixing some block parsing issues and response size issues we're seeing as the Althea testnet continues to scale up. Web30 was having issues with log sizes, this commit also reduces the search block interval from 50k to 5k combined with the size increase in response buffers this should be more than sufficient.
1 parent b5e1582 commit fd98d20

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

orchestrator/Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

orchestrator/orchestrator/src/oracle_resync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub async fn get_last_checked_block(
2222
web3: &Web3,
2323
) -> Uint256 {
2424
let mut grpc_client = grpc_client;
25-
const BLOCKS_TO_SEARCH: u128 = 50_000u128;
25+
const BLOCKS_TO_SEARCH: u128 = 5_000u128;
2626

2727
let latest_block = get_block_number_with_retry(web3).await;
2828
let mut last_event_nonce: Uint256 =

orchestrator/relayer/src/find_latest_valset.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub async fn find_latest_valset(
1818
peggy_contract_address: Address,
1919
web3: &Web3,
2020
) -> Result<Valset, PeggyError> {
21-
const BLOCKS_TO_SEARCH: u128 = 50_000u128;
21+
const BLOCKS_TO_SEARCH: u128 = 5_000u128;
2222
let latest_block = web3.eth_block_number().await?;
2323
let mut current_block: Uint256 = latest_block.clone();
2424
let latest_ethereum_valset =

0 commit comments

Comments
 (0)