Skip to content

Commit

Permalink
use 200 as default to allow 3 min delay from latest rpc fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
ppca committed Oct 16, 2024
1 parent 3074ff9 commit 9ccf67b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chain-signatures/node/src/indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub struct Options {
#[clap(
long,
env("MPC_INDEXER_BLOCK_HEIGHT_LAG_THRESHOLD"),
default_value = "50"
default_value = "200"
)]
pub block_height_lag_threshold: u64,
}
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/chain-signatures/src/containers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl<'a> Node<'a> {
start_block_height: 0,
running_threshold: 120,
behind_threshold: 120,
block_height_lag_threshold: 50,
block_height_lag_threshold: 200,
};

let args = mpc_node::cli::Cli::Start {
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/chain-signatures/src/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl Node {
start_block_height: 0,
running_threshold: 120,
behind_threshold: 120,
block_height_lag_threshold: 50,
block_height_lag_threshold: 200,
};
let near_rpc = ctx.lake_indexer.rpc_host_address.clone();
let mpc_contract_id = ctx.mpc_contract.id().clone();
Expand Down Expand Up @@ -149,7 +149,7 @@ impl Node {
start_block_height: 0,
running_threshold: 120,
behind_threshold: 120,
block_height_lag_threshold: 50,
block_height_lag_threshold: 200,
};
let cli = mpc_node::cli::Cli::Start {
near_rpc: config.near_rpc.clone(),
Expand Down

0 comments on commit 9ccf67b

Please sign in to comment.