Skip to content

Commit

Permalink
chore: signers should be more permissive about a slow miner wakeup
Browse files Browse the repository at this point in the history
  • Loading branch information
kantai committed Oct 21, 2024
1 parent da15d83 commit 5ae2906
Showing 1 changed file with 6 additions and 2 deletions.
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

0 comments on commit 5ae2906

Please sign in to comment.