Skip to content

Commit c9ec4fb

Browse files
committed
chore: auth_token, and fix poll timeout
1 parent 62004f9 commit c9ec4fb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

testnet/stacks-node/src/config.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,12 @@ mod tests {
221221
}
222222

223223
#[test]
224-
fn should_load_block_proposal_token() {
224+
fn should_load_auth_token() {
225225
let config = Config::from_config_file(
226226
ConfigFile::from_str(
227227
r#"
228228
[connection_options]
229-
block_proposal_token = "password"
229+
auth_token = "password"
230230
"#,
231231
)
232232
.unwrap(),
@@ -235,7 +235,7 @@ mod tests {
235235
.expect("Expected to be able to parse block proposal token from file");
236236

237237
assert_eq!(
238-
config.connection_options.block_proposal_token,
238+
config.connection_options.auth_token,
239239
Some("password".to_string())
240240
);
241241
}
@@ -1368,7 +1368,7 @@ impl Config {
13681368
let poll_timeout = if self.node.miner {
13691369
cmp::min(1000, self.miner.first_attempt_time_ms / 2)
13701370
} else {
1371-
5000
1371+
1000
13721372
};
13731373
poll_timeout
13741374
}
@@ -2425,7 +2425,7 @@ pub struct ConnectionOptionsFile {
24252425
pub force_disconnect_interval: Option<u64>,
24262426
pub antientropy_public: Option<bool>,
24272427
pub private_neighbors: Option<bool>,
2428-
pub block_proposal_token: Option<String>,
2428+
pub auth_token: Option<String>,
24292429
pub antientropy_retry: Option<u64>,
24302430
}
24312431

@@ -2551,7 +2551,7 @@ impl ConnectionOptionsFile {
25512551
max_sockets: self.max_sockets.unwrap_or(800) as usize,
25522552
antientropy_public: self.antientropy_public.unwrap_or(true),
25532553
private_neighbors: self.private_neighbors.unwrap_or(true),
2554-
block_proposal_token: self.block_proposal_token,
2554+
auth_token: self.auth_token,
25552555
antientropy_retry: self.antientropy_retry.unwrap_or(default.antientropy_retry),
25562556
..default
25572557
})

0 commit comments

Comments
 (0)