Skip to content

Commit 49d8974

Browse files
committed
chore: update default mempool walk strategy
I think we have mined long enough with this setting to be confident to make it the default in the next release.
1 parent d16bd3a commit 49d8974

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to the versioning scheme outlined in the [README.md](RE
1616
- Reduce the default `block_rejection_timeout_steps` configuration so that miners will retry faster when blocks fail to reach 70% approved or 30% rejected.
1717
- Added index for `next_ready_nakamoto_block()` which improves block processing performance.
1818
- Added a new field, `parent_burn_block_hash`, to the payload that is included in the `/new_burn_block` event observer payload.
19+
- Changed default mempool walk strategy to `NextNonceWithHighestFeeRate`
1920

2021
## [3.1.0.0.8]
2122

stackslib/src/config/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2224,7 +2224,7 @@ impl Default for MinerConfig {
22242224
activated_vrf_key_path: None,
22252225
fast_rampup: false,
22262226
underperform_stop_threshold: None,
2227-
mempool_walk_strategy: MemPoolWalkStrategy::GlobalFeeRate,
2227+
mempool_walk_strategy: MemPoolWalkStrategy::NextNonceWithHighestFeeRate,
22282228
txs_to_consider: MemPoolWalkTxTypes::all(),
22292229
filter_origins: HashSet::new(),
22302230
max_reorg_depth: 3,
@@ -2758,7 +2758,7 @@ impl MinerConfigFile {
27582758
underperform_stop_threshold: self.underperform_stop_threshold,
27592759
mempool_walk_strategy: self.mempool_walk_strategy
27602760
.map(|s| str::parse(&s).unwrap_or_else(|e| panic!("Could not parse '{s}': {e}")))
2761-
.unwrap_or(MemPoolWalkStrategy::GlobalFeeRate),
2761+
.unwrap_or(MemPoolWalkStrategy::NextNonceWithHighestFeeRate),
27622762
txs_to_consider: {
27632763
if let Some(txs_to_consider) = &self.txs_to_consider {
27642764
txs_to_consider

stackslib/src/core/mempool.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ pub struct MemPoolWalkSettings {
575575
impl Default for MemPoolWalkSettings {
576576
fn default() -> Self {
577577
MemPoolWalkSettings {
578-
strategy: MemPoolWalkStrategy::GlobalFeeRate,
578+
strategy: MemPoolWalkStrategy::NextNonceWithHighestFeeRate,
579579
max_walk_time_ms: u64::MAX,
580580
consider_no_estimate_tx_prob: 5,
581581
nonce_cache_size: 1024 * 1024,
@@ -589,7 +589,7 @@ impl Default for MemPoolWalkSettings {
589589
impl MemPoolWalkSettings {
590590
pub fn zero() -> MemPoolWalkSettings {
591591
MemPoolWalkSettings {
592-
strategy: MemPoolWalkStrategy::GlobalFeeRate,
592+
strategy: MemPoolWalkStrategy::NextNonceWithHighestFeeRate,
593593
max_walk_time_ms: u64::MAX,
594594
consider_no_estimate_tx_prob: 5,
595595
nonce_cache_size: 1024 * 1024,

0 commit comments

Comments
 (0)