Skip to content

Commit 79257b0

Browse files
committed
document antientropy_retry
1 parent a6e88ae commit 79257b0

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

stackslib/src/config/mod.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2611,15 +2611,14 @@ pub struct ConnectionOptionsFile {
26112611
///
26122612
/// Default: `None` (authentication disabled for relevant endpoints).
26132613
pub auth_token: Option<String>,
2614-
/// Controls whether a node with public inbound connections should still push blocks.
2614+
/// Minimum interval (in seconds) between attempts to run the Epoch 2.x anti-entropy data push mechanism.
26152615
///
2616-
/// In the Stacks 2.x anti-entropy logic, if a node detected it had inbound connections
2617-
/// from public IPs (suggesting it wasn't behind NAT) and this flag was set to `false`,
2618-
/// it would refrain from proactively pushing blocks and microblocks to peers.
2619-
/// The assumption was that publicly reachable nodes should primarily serve downloads.
2620-
/// If set to `true`, the node would push data regardless of its perceived reachability.
2616+
/// The Stacks 2.x anti-entropy protocol involves the node proactively pushing its known
2617+
/// Stacks blocks and microblocks to peers. This `antientropy_retry` value specifies the
2618+
/// cooldown period for this operation.
2619+
/// This prevents the node from excessively attempting to push data to its peers.
26212620
///
2622-
/// Default: `true`.
2621+
/// Default: 3600 seconds (1 hour).
26232622
/// Deprecated: This setting is ignored in Epoch 3.0+.
26242623
pub antientropy_retry: Option<u64>,
26252624
/// Controls whether the node accepts Nakamoto blocks pushed proactively by peers.

0 commit comments

Comments
 (0)