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

Chore: Configure signer set to be more permissive about a slow miner wakeup #5341

Merged
merged 1 commit into from
Oct 21, 2024
Merged
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
8 changes: 6 additions & 2 deletions stacks-signer/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ use crate::client::SignerSlotID;

const EVENT_TIMEOUT_MS: u64 = 5000;
const BLOCK_PROPOSAL_TIMEOUT_MS: u64 = 45_000;
const DEFAULT_FIRST_PROPOSAL_BURN_BLOCK_TIMING_SECS: u64 = 60;

#[derive(thiserror::Error, Debug)]
/// An error occurred parsing the provided configuration
Expand Down Expand Up @@ -239,8 +240,11 @@ impl TryFrom<RawConfigFile> for GlobalConfig {
StacksAddress::p2pkh_from_hash(raw_data.network.is_mainnet(), signer_hash);
let event_timeout =
Duration::from_millis(raw_data.event_timeout_ms.unwrap_or(EVENT_TIMEOUT_MS));
let first_proposal_burn_block_timing =
Duration::from_secs(raw_data.first_proposal_burn_block_timing_secs.unwrap_or(30));
let first_proposal_burn_block_timing = Duration::from_secs(
raw_data
.first_proposal_burn_block_timing_secs
.unwrap_or(DEFAULT_FIRST_PROPOSAL_BURN_BLOCK_TIMING_SECS),
);
let db_path = raw_data.db_path.into();

let metrics_endpoint = match raw_data.metrics_endpoint {
Expand Down