Skip to content

Commit 9bb8633

Browse files
committed
add backticks to default values
1 parent c73f610 commit 9bb8633

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

stackslib/src/config/mod.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,25 +2124,25 @@ impl NodeConfig {
21242124
pub struct MinerConfig {
21252125
/// Time to wait (in milliseconds) before the first attempt to mine a block.
21262126
///
2127-
/// Default: 10 ms
2127+
/// Default: `10` ms
21282128
/// Deprecated: This setting is ignored in Epoch 3.0+. Only used in the neon chain mode.
21292129
pub first_attempt_time_ms: u64,
21302130
/// Time to wait (in milliseconds) for subsequent attempts to mine a block,
21312131
/// after the first attempt fails.
21322132
///
2133-
/// Default: 120_0000 ms (2 minutes)
2133+
/// Default: `120_000` ms (2 minutes)
21342134
/// Deprecated: This setting is ignored in Epoch 3.0+. Only used in the neon chain mode.
21352135
pub subsequent_attempt_time_ms: u64,
21362136
/// Time to wait (in milliseconds) to mine a microblock,
21372137
///
2138-
/// Default: 30_000 ms (30 seconds)
2138+
/// Default: `30_000` ms (30 seconds)
21392139
/// Deprecated: This setting is ignored in Epoch 3.0+. Only used in the neon chain mode.
21402140
pub microblock_attempt_time_ms: u64,
21412141
/// Maximum time (in milliseconds) the miner spends selecting transactions from the mempool
21422142
/// when assembling a Nakamoto block. Once this duration is exceeded, the miner stops
21432143
/// adding transactions and finalizes the block with those already selected.
21442144
///
2145-
/// Default: 5000 ms (5 seconds)
2145+
/// Default: `5_000` ms (5 seconds)
21462146
pub nakamoto_attempt_time_ms: u64,
21472147
/// Strategy for selecting the next transaction candidate from the mempool.
21482148
/// Controls prioritization between maximizing immediate fee capture vs. ensuring
@@ -2165,7 +2165,7 @@ pub struct MinerConfig {
21652165
/// preventing potential starvation. A value of 0 means never prioritize them first,
21662166
/// 100 means always prioritize them first (if available).
21672167
///
2168-
/// Default: 25 (25% chance)
2168+
/// Default: `25` (25% chance)
21692169
pub probability_pick_no_estimate_tx: u8,
21702170
/// Optional recipient for the coinbase block reward, overriding the default miner address.
21712171
///
@@ -2193,7 +2193,7 @@ pub struct MinerConfig {
21932193
///
21942194
/// Must be configured to a value greater than 0.
21952195
///
2196-
/// Default: `1048576` (1 MiB)
2196+
/// Default: `1048576` bytes (1 MiB)
21972197
pub nonce_cache_size: usize,
21982198
/// Max size (in *number* of items) of transaction candidates to hold in the in-memory
21992199
/// retry cache. Each element [`MemPoolTxInfoPartial`] is currently 112 bytes.
@@ -2206,7 +2206,7 @@ pub struct MinerConfig {
22062206
/// A larger cache retains more potentially valid future candidates but uses more memory.
22072207
/// This setting is primarily relevant for the `GlobalFeeRate` strategy.
22082208
///
2209-
/// Default: `1048576` (112 bytes * 1048576 = 112 MB)
2209+
/// Default: `1048576` items (112 bytes * 1048576 = 112 MB)
22102210
pub candidate_retry_cache_size: usize,
22112211
/// Amount of time (in seconds) to wait for unprocessed blocks before mining a new block.
22122212
///

0 commit comments

Comments
 (0)