Skip to content

Commit

Permalink
Update stackslib/src/config/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Jeff Bencin <[email protected]>
  • Loading branch information
rafaelcr and jbencin authored Dec 18, 2024
1 parent 0b0b821 commit 632a20f
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions stackslib/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2676,18 +2676,9 @@ impl MinerConfigFile {
activated_vrf_key_path: self.activated_vrf_key_path.clone(),
fast_rampup: self.fast_rampup.unwrap_or(miner_default_config.fast_rampup),
underperform_stop_threshold: self.underperform_stop_threshold,
mempool_walk_strategy: {
if let Some(mempool_walk_strategy) = &self.mempool_walk_strategy {
match str::parse(&mempool_walk_strategy) {
Ok(strategy) => strategy,
Err(e) => {
panic!("could not parse '{mempool_walk_strategy}': {e}");
},
}
} else {
MemPoolWalkStrategy::GlobalFeeRate
}
},
mempool_walk_strategy: self.mempool_walk_strategy
.map(|s| str::parse(&s).unwrap_or_else(|e| panic!("Could not parse '{s}': {e}")))
.unwrap_or(MemPoolWalkStrategy::GlobalFeeRate),
txs_to_consider: {
if let Some(txs_to_consider) = &self.txs_to_consider {
txs_to_consider
Expand Down

0 comments on commit 632a20f

Please sign in to comment.