Skip to content
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
1 change: 1 addition & 0 deletions changelog.d/reduce-timeout.changed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Lower the default StackerDB timeouts to retry HTTP RPC sooner.
2 changes: 1 addition & 1 deletion stacks-signer/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub const DEFAULT_RESET_REPLAY_SET_AFTER_FORK_BLOCKS: u64 = 2;
/// machine view point and capitulating to other signers tenure view
const DEFAULT_CAPITULATE_MINER_VIEW_SECS: u64 = 20;
/// Default HTTP timeout (in seconds) for read/write operations with StackerDB.
pub const DEFAULT_STACKERDB_TIMEOUT_SECS: u64 = 120;
pub const DEFAULT_STACKERDB_TIMEOUT_SECS: u64 = 10;

#[derive(thiserror::Error, Debug)]
/// An error occurred parsing the provided configuration
Expand Down
2 changes: 1 addition & 1 deletion stackslib/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const DEFAULT_MAX_EXECUTION_TIME_SECS: u64 = 30;
/// phase of a transaction before timing out.
const DEFAULT_MAX_ANALYSIS_TIME_SECS: u64 = 30;
/// Default number of seconds that a miner should wait before timing out an HTTP request to StackerDB.
const DEFAULT_STACKERDB_TIMEOUT_SECS: u64 = 120;
const DEFAULT_STACKERDB_TIMEOUT_SECS: u64 = 10;
/// Default maximum size for a tenure (note: the counter is reset on tenure extend).
pub const DEFAULT_MAX_TENURE_BYTES: u64 = 10 * 1024 * 1024; // 10 MB
/// Default maximum memory allocation during miner block assembly
Expand Down