Skip to content

Commit 1528a57

Browse files
authored
Merge pull request #5341 from stacks-network/chore/naka-configs
Chore: Configure signer set to be more permissive about a slow miner wakeup
2 parents ca84a1b + 5ae2906 commit 1528a57

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

stacks-signer/src/config.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ use crate::client::SignerSlotID;
3535

3636
const EVENT_TIMEOUT_MS: u64 = 5000;
3737
const BLOCK_PROPOSAL_TIMEOUT_MS: u64 = 45_000;
38+
const DEFAULT_FIRST_PROPOSAL_BURN_BLOCK_TIMING_SECS: u64 = 60;
3839

3940
#[derive(thiserror::Error, Debug)]
4041
/// An error occurred parsing the provided configuration
@@ -239,8 +240,11 @@ impl TryFrom<RawConfigFile> for GlobalConfig {
239240
StacksAddress::p2pkh_from_hash(raw_data.network.is_mainnet(), signer_hash);
240241
let event_timeout =
241242
Duration::from_millis(raw_data.event_timeout_ms.unwrap_or(EVENT_TIMEOUT_MS));
242-
let first_proposal_burn_block_timing =
243-
Duration::from_secs(raw_data.first_proposal_burn_block_timing_secs.unwrap_or(30));
243+
let first_proposal_burn_block_timing = Duration::from_secs(
244+
raw_data
245+
.first_proposal_burn_block_timing_secs
246+
.unwrap_or(DEFAULT_FIRST_PROPOSAL_BURN_BLOCK_TIMING_SECS),
247+
);
244248
let db_path = raw_data.db_path.into();
245249

246250
let metrics_endpoint = match raw_data.metrics_endpoint {

0 commit comments

Comments
 (0)