Skip to content

Commit f938baf

Browse files
authored
Merge pull request #4932 from stacks-network/chore/configure-antientropy-retry
chore: make connection_options.antientropy_retry configurable
2 parents 35d0840 + 0f000c9 commit f938baf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

testnet/stacks-node/src/config.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2389,6 +2389,7 @@ pub struct ConnectionOptionsFile {
23892389
pub antientropy_public: Option<bool>,
23902390
pub private_neighbors: Option<bool>,
23912391
pub block_proposal_token: Option<String>,
2392+
pub antientropy_retry: Option<u64>,
23922393
}
23932394

23942395
impl ConnectionOptionsFile {
@@ -2420,6 +2421,7 @@ impl ConnectionOptionsFile {
24202421
self.read_only_call_limit_runtime.map(|x| {
24212422
read_only_call_limit.runtime = x;
24222423
});
2424+
let default = ConnectionOptions::default();
24232425
Ok(ConnectionOptions {
24242426
read_only_call_limit,
24252427
inbox_maxlen: self
@@ -2513,7 +2515,8 @@ impl ConnectionOptionsFile {
25132515
antientropy_public: self.antientropy_public.unwrap_or(true),
25142516
private_neighbors: self.private_neighbors.unwrap_or(true),
25152517
block_proposal_token: self.block_proposal_token,
2516-
..ConnectionOptions::default()
2518+
antientropy_retry: self.antientropy_retry.unwrap_or(default.antientropy_retry),
2519+
..default
25172520
})
25182521
}
25192522
}

0 commit comments

Comments
 (0)