Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates the default paramter values to match the deployed sequencer. #179

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ processes = []
ETH_MIN_NONCE="0"
MULTI_CONTRIBUTION="true"
COMPUTE_DEADLINE="480"
LOBBY_CHECKIN_FREQUENCY="30"
LOBBY_CHECKIN_TOLERANCE="15"
LOBBY_CHECKIN_FREQUENCY="32"
LOBBY_CHECKIN_TOLERANCE="16

# ❯ fly secrets list
# NAME DIGEST CREATED AT
Expand Down
8 changes: 4 additions & 4 deletions src/lobby.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,24 @@ fn duration_from_str(value: &str) -> Result<Duration, ParseIntError> {
#[group(skip)]
pub struct Options {
/// Timeout for participants to contribute to the ceremony in seconds.
#[clap(long, env, value_parser=duration_from_str, default_value="180")]
#[clap(long, env, value_parser=duration_from_str, default_value="192")]
pub compute_deadline: Duration,

/// How often participants should ping the server to keep their session
/// alive in seconds.
#[clap(long, env, value_parser=duration_from_str, default_value="30")]
#[clap(long, env, value_parser=duration_from_str, default_value="32")]
pub lobby_checkin_frequency: Duration,

/// How much the ping can be late in seconds
#[clap(long, env, value_parser=duration_from_str, default_value="2")]
pub lobby_checkin_tolerance: Duration,

/// How often the server should check for dead sessions in seconds.
#[clap(long, env, value_parser=duration_from_str, default_value="5")]
#[clap(long, env, value_parser=duration_from_str, default_value="4")]
pub lobby_flush_interval: Duration,

/// Maximum number of participants in the lobby.
#[clap(long, env, default_value = "1000")]
#[clap(long, env, default_value = "65536")]
pub max_lobby_size: usize,

/// How long the session is valid if user doesn't take any actions, in
Expand Down
4 changes: 2 additions & 2 deletions src/oauth/ethereum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ use std::{num::ParseIntError, ops::Deref};
#[derive(Clone, Debug, PartialEq, Eq, Parser)]
pub struct EthAuthOptions {
/// The block height where the users nonce is fetched from.
#[clap(long, env, value_parser = dec_to_hex, default_value = "15565180")]
#[clap(long, env, value_parser = dec_to_hex, default_value = "16394155")]
pub eth_nonce_verification_block: String,

/// The minimum nonce required at the specified block height in order to
/// participate.
#[clap(long, env, default_value = "4")]
#[clap(long, env, default_value = "3")]
pub eth_min_nonce: u64,

/// The Ethereum JSON-RPC endpoint to use.
Expand Down