Skip to content

Commit

Permalink
Upgrade to Contact 0.4.2 and Web30 0.10.8
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jkilpatr committed Mar 24, 2021
1 parent b5e1582 commit fd98d20
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions orchestrator/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion orchestrator/orchestrator/src/oracle_resync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub async fn get_last_checked_block(
web3: &Web3,
) -> Uint256 {
let mut grpc_client = grpc_client;
const BLOCKS_TO_SEARCH: u128 = 50_000u128;
const BLOCKS_TO_SEARCH: u128 = 5_000u128;

let latest_block = get_block_number_with_retry(web3).await;
let mut last_event_nonce: Uint256 =
Expand Down
2 changes: 1 addition & 1 deletion orchestrator/relayer/src/find_latest_valset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub async fn find_latest_valset(
peggy_contract_address: Address,
web3: &Web3,
) -> Result<Valset, PeggyError> {
const BLOCKS_TO_SEARCH: u128 = 50_000u128;
const BLOCKS_TO_SEARCH: u128 = 5_000u128;
let latest_block = web3.eth_block_number().await?;
let mut current_block: Uint256 = latest_block.clone();
let latest_ethereum_valset =
Expand Down

0 comments on commit fd98d20

Please sign in to comment.