Skip to content

Commit 5341074

Browse files
committed
refactor: auth_token
1 parent c436e0e commit 5341074

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

testnet/stacks-node/src/tests/nakamoto_integrations.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ impl TestSigningChannel {
231231

232232
pub fn get_stacker_set(http_origin: &str, cycle: u64) -> GetStackersResponse {
233233
let client = reqwest::blocking::Client::new();
234-
let path = format!("{http_origin}/v2/stacker_set/{cycle}");
234+
let path = format!("{http_origin}/v3/stacker_set/{cycle}");
235235
let res = client
236236
.get(&path)
237237
.send()
@@ -2302,7 +2302,7 @@ fn correct_burn_outs() {
23022302
run_loop_thread.join().unwrap();
23032303
}
23042304

2305-
/// Test `/v2/block_proposal` API endpoint
2305+
/// Test `/v3/block_proposal` API endpoint
23062306
///
23072307
/// This endpoint allows miners to propose Nakamoto blocks to a node,
23082308
/// and test if they would be accepted or rejected
@@ -2315,7 +2315,7 @@ fn block_proposal_api_endpoint() {
23152315

23162316
let (mut conf, _miner_account) = naka_neon_integration_conf(None);
23172317
let password = "12345".to_string();
2318-
conf.connection_options.block_proposal_token = Some(password.clone());
2318+
conf.connection_options.auth_token = Some(password.clone());
23192319
let account_keys = add_initial_balances(&mut conf, 10, 1_000_000);
23202320
let stacker_sk = setup_stacker(&mut conf);
23212321
let sender_signer_sk = Secp256k1PrivateKey::new();
@@ -2539,7 +2539,7 @@ fn block_proposal_api_endpoint() {
25392539
.expect("Failed to build `reqwest::Client`");
25402540
// Build URL
25412541
let http_origin = format!("http://{}", &conf.node.rpc_bind);
2542-
let path = format!("{http_origin}/v2/block_proposal");
2542+
let path = format!("{http_origin}/v3/block_proposal");
25432543

25442544
let mut hold_proposal_mutex = Some(test_observer::PROPOSAL_RESPONSES.lock().unwrap());
25452545
for (ix, (test_description, block_proposal, expected_http_code, _)) in
@@ -4494,7 +4494,7 @@ fn nakamoto_attempt_time() {
44944494
let mut signers = TestSigners::default();
44954495
let (mut naka_conf, _miner_account) = naka_neon_integration_conf(None);
44964496
let password = "12345".to_string();
4497-
naka_conf.connection_options.block_proposal_token = Some(password.clone());
4497+
naka_conf.connection_options.auth_token = Some(password.clone());
44984498
// Use fixed timing params for this test
44994499
let nakamoto_attempt_time_ms = 20_000;
45004500
naka_conf.miner.nakamoto_attempt_time_ms = nakamoto_attempt_time_ms;
@@ -5165,7 +5165,7 @@ fn signer_chainstate() {
51655165
socket,
51665166
naka_conf
51675167
.connection_options
5168-
.block_proposal_token
5168+
.auth_token
51695169
.clone()
51705170
.unwrap_or("".into()),
51715171
false,

0 commit comments

Comments
 (0)