Skip to content

Commit bca3aa9

Browse files
committed
feat: reduce default block_rejection_timeout_steps
1 parent 9d4cc3a commit bca3aa9

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to the versioning scheme outlined in the [README.md](README.md).
77

8+
## [Unreleased]
9+
10+
### Changed
11+
12+
- Reduce the default `block_rejection_timeout_steps` configuration so that miners will retry faster when blocks fail to reach 70% approved or 30% rejected.
13+
814
## [3.1.0.0.8]
915

1016
### Added

stackslib/src/config/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2244,9 +2244,9 @@ impl Default for MinerConfig {
22442244

22452245
block_rejection_timeout_steps: {
22462246
let mut rejections_timeouts_default_map = HashMap::<u32, Duration>::new();
2247-
rejections_timeouts_default_map.insert(0, Duration::from_secs(600));
2248-
rejections_timeouts_default_map.insert(10, Duration::from_secs(300));
2249-
rejections_timeouts_default_map.insert(20, Duration::from_secs(150));
2247+
rejections_timeouts_default_map.insert(0, Duration::from_secs(180));
2248+
rejections_timeouts_default_map.insert(10, Duration::from_secs(90));
2249+
rejections_timeouts_default_map.insert(20, Duration::from_secs(45));
22502250
rejections_timeouts_default_map.insert(30, Duration::from_secs(0));
22512251
rejections_timeouts_default_map
22522252
},
@@ -2835,6 +2835,7 @@ impl MinerConfigFile {
28352835
})
28362836
}
28372837
}
2838+
28382839
#[derive(Clone, Deserialize, Default, Debug)]
28392840
#[serde(deny_unknown_fields)]
28402841
pub struct AtlasConfigFile {

0 commit comments

Comments
 (0)