@@ -1260,8 +1260,8 @@ pub struct BurnchainConfig {
1260
1260
/// The network-specific identifier used in P2P communication and database initialization.
1261
1261
/// ---
1262
1262
/// @default: |
1263
- /// - [`CHAIN_ID_MAINNET`] if [`BurnchainConfig::mode`] is `"mainnet"`
1264
- /// - [`CHAIN_ID_TESTNET`] otherwise
1263
+ /// - if [`BurnchainConfig::mode`] is `"mainnet"`: [`CHAIN_ID_MAINNET`]
1264
+ /// - else: [`CHAIN_ID_TESTNET`]
1265
1265
/// @notes:
1266
1266
/// - **Warning:** Do not modify this unless you really know what you're doing.
1267
1267
/// - This is intended strictly for testing purposes.
@@ -1270,8 +1270,8 @@ pub struct BurnchainConfig {
1270
1270
/// This parameter cannot be set via the configuration file.
1271
1271
/// ---
1272
1272
/// @default: |
1273
- /// - [`PEER_VERSION_MAINNET`] if [`BurnchainConfig::mode`] is `"mainnet"`
1274
- /// - [`PEER_VERSION_TESTNET`] otherwise
1273
+ /// - if [`BurnchainConfig::mode`] is `"mainnet"`: [`PEER_VERSION_MAINNET`]
1274
+ /// - else: [`PEER_VERSION_TESTNET`]
1275
1275
/// @notes:
1276
1276
/// - **Warning:** Do not modify this unless you really know what you're doing.
1277
1277
pub peer_version : u32 ,
@@ -1348,8 +1348,8 @@ pub struct BurnchainConfig {
1348
1348
/// Configured as a 2-character ASCII string (e.g., "X2" for mainnet).
1349
1349
/// ---
1350
1350
/// @default: |
1351
- /// - `"T2"` if [`BurnchainConfig::mode`] is `"xenon"`
1352
- /// - `"X2"` otherwise
1351
+ /// - if [`BurnchainConfig::mode`] is `"xenon"`: `"T2 "`
1352
+ /// - else: `"X2"`
1353
1353
pub magic_bytes : MagicBytes ,
1354
1354
/// The public key associated with the local mining address for the underlying Bitcoin regtest node.
1355
1355
/// Provided as a hex string representing an uncompressed public key.
@@ -2204,9 +2204,7 @@ pub struct NodeConfig {
2204
2204
/// - If `false`: Burnchain processing continues without waiting. Allows miners to operate optimistically
2205
2205
/// but may necessitate unwinding later if the affirmed block alters the chain state.
2206
2206
/// ---
2207
- /// @default: |
2208
- /// - `true` if [`NodeConfig::miner`] is `false`
2209
- /// - `false` if [`NodeConfig::miner`] is `true`
2207
+ /// @default: Derived from the inverse of [`NodeConfig::miner`] value.
2210
2208
pub require_affirmed_anchor_blocks : bool ,
2211
2209
/// Controls if the node must strictly wait for any PoX anchor block selected by the core consensus mechanism.
2212
2210
/// - If `true`: Halts burnchain processing immediately whenever a selected anchor block is missing locally
@@ -2250,10 +2248,10 @@ pub struct NodeConfig {
2250
2248
/// e.g., "SP000000000000000000002Q6VF78.pox-3") that this node should actively replicate.
2251
2249
/// ---
2252
2250
/// @default: |
2253
- /// - If [`NodeConfig::miner`] is `true` or [`NodeConfig::stacker`] is `true`, relevant system contracts
2251
+ /// - if [`NodeConfig::miner`] is `true` or [`NodeConfig::stacker`] is `true`: relevant system contracts
2254
2252
/// (like `.miners`, `.signers-*`) are automatically added in addition to any contracts
2255
2253
/// specified in the configuration file.
2256
- /// - Otherwise, defaults to an empty list `[]` if not specified in the TOML .
2254
+ /// - else: defaults to an empty list `[]`.
2257
2255
/// @notes:
2258
2256
/// - Values are strings representing qualified contract identifiers.
2259
2257
/// @toml_example: |
@@ -2803,8 +2801,8 @@ pub struct MinerConfig {
2803
2801
/// This key must be present at runtime for mining operations to succeed.
2804
2802
/// ---
2805
2803
/// @default: |
2806
- /// - [`NodeConfig::seed`] if the `[miner]` section *is present* in the config file
2807
- /// - `None` if the `[miner]` section *is not present*
2804
+ /// - if the `[miner]` section *is present* in the config file: [`NodeConfig::seed`]
2805
+ /// - else: `None`
2808
2806
pub mining_key : Option < Secp256k1PrivateKey > ,
2809
2807
/// Amount of time while mining in nakamoto to wait in between mining interim blocks.
2810
2808
/// ---
@@ -3449,8 +3447,8 @@ pub struct ConnectionOptionsFile {
3449
3447
/// how much historical inventory information is requested in each sync attempt.
3450
3448
/// ---
3451
3449
/// @default: |
3452
- /// - `3` if [`BurnchainConfig::mode`] is `"mainnet"`
3453
- /// - [`INV_REWARD_CYCLES_TESTNET`] otherwise
3450
+ /// - if [`BurnchainConfig::mode`] is `"mainnet"`: `3 `
3451
+ /// - else: [`INV_REWARD_CYCLES_TESTNET`]
3454
3452
/// @units: PoX reward cycles
3455
3453
pub inv_reward_cycles : Option < u64 > ,
3456
3454
/// The Public IPv4 address and port (e.g. "203.0.113.42:20444") to advertise to other nodes.
@@ -3492,6 +3490,9 @@ pub struct ConnectionOptionsFile {
3492
3490
/// ---
3493
3491
/// @default: `None` (feature disabled)
3494
3492
/// @notes:
3493
+ /// - If set to a positive value, the node will periodically disconnect all of its P2P peers at
3494
+ /// roughly this interval.
3495
+ /// - This simulates network churn or partitioning for testing node resilience.
3495
3496
/// - The code enforcing this behavior is conditionally compiled using `cfg!(test)` and is
3496
3497
/// only active during test runs.
3497
3498
/// - This setting has no effect in standard production builds.
0 commit comments