@@ -2124,25 +2124,25 @@ impl NodeConfig {
2124
2124
pub struct MinerConfig {
2125
2125
/// Time to wait (in milliseconds) before the first attempt to mine a block.
2126
2126
///
2127
- /// Default: 10 ms
2127
+ /// Default: `10` ms
2128
2128
/// Deprecated: This setting is ignored in Epoch 3.0+. Only used in the neon chain mode.
2129
2129
pub first_attempt_time_ms : u64 ,
2130
2130
/// Time to wait (in milliseconds) for subsequent attempts to mine a block,
2131
2131
/// after the first attempt fails.
2132
2132
///
2133
- /// Default: 120_0000 ms (2 minutes)
2133
+ /// Default: `120_000` ms (2 minutes)
2134
2134
/// Deprecated: This setting is ignored in Epoch 3.0+. Only used in the neon chain mode.
2135
2135
pub subsequent_attempt_time_ms : u64 ,
2136
2136
/// Time to wait (in milliseconds) to mine a microblock,
2137
2137
///
2138
- /// Default: 30_000 ms (30 seconds)
2138
+ /// Default: ` 30_000` ms (30 seconds)
2139
2139
/// Deprecated: This setting is ignored in Epoch 3.0+. Only used in the neon chain mode.
2140
2140
pub microblock_attempt_time_ms : u64 ,
2141
2141
/// Maximum time (in milliseconds) the miner spends selecting transactions from the mempool
2142
2142
/// when assembling a Nakamoto block. Once this duration is exceeded, the miner stops
2143
2143
/// adding transactions and finalizes the block with those already selected.
2144
2144
///
2145
- /// Default: 5000 ms (5 seconds)
2145
+ /// Default: `5_000` ms (5 seconds)
2146
2146
pub nakamoto_attempt_time_ms : u64 ,
2147
2147
/// Strategy for selecting the next transaction candidate from the mempool.
2148
2148
/// Controls prioritization between maximizing immediate fee capture vs. ensuring
@@ -2165,7 +2165,7 @@ pub struct MinerConfig {
2165
2165
/// preventing potential starvation. A value of 0 means never prioritize them first,
2166
2166
/// 100 means always prioritize them first (if available).
2167
2167
///
2168
- /// Default: 25 (25% chance)
2168
+ /// Default: `25` (25% chance)
2169
2169
pub probability_pick_no_estimate_tx : u8 ,
2170
2170
/// Optional recipient for the coinbase block reward, overriding the default miner address.
2171
2171
///
@@ -2193,7 +2193,7 @@ pub struct MinerConfig {
2193
2193
///
2194
2194
/// Must be configured to a value greater than 0.
2195
2195
///
2196
- /// Default: `1048576` (1 MiB)
2196
+ /// Default: `1048576` bytes (1 MiB)
2197
2197
pub nonce_cache_size : usize ,
2198
2198
/// Max size (in *number* of items) of transaction candidates to hold in the in-memory
2199
2199
/// retry cache. Each element [`MemPoolTxInfoPartial`] is currently 112 bytes.
@@ -2206,7 +2206,7 @@ pub struct MinerConfig {
2206
2206
/// A larger cache retains more potentially valid future candidates but uses more memory.
2207
2207
/// This setting is primarily relevant for the `GlobalFeeRate` strategy.
2208
2208
///
2209
- /// Default: `1048576` (112 bytes * 1048576 = 112 MB)
2209
+ /// Default: `1048576` items (112 bytes * 1048576 = 112 MB)
2210
2210
pub candidate_retry_cache_size : usize ,
2211
2211
/// Amount of time (in seconds) to wait for unprocessed blocks before mining a new block.
2212
2212
///
0 commit comments