Skip to content

Commit 7e57af9

Browse files
authored
Merge branch 'develop' into refactor/add-epoch-index
2 parents e869346 + 4bf673f commit 7e57af9

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

stacks-signer/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl<S: Signer<T> + Send + 'static, T: SignerEventTrait + 'static> SpawnedSigner
121121
as this could potentially expose sensitive data or functionalities to security risks \
122122
if additional proper security checks are not integrated in place. \
123123
For more information, check the documentation at \
124-
https://docs.stacks.co/nakamoto-upgrade/signing-and-stacking/faq#what-should-the-networking-setup-for-my-signer-look-like."
124+
https://docs.stacks.co/guides-and-tutorials/running-a-signer#preflight-setup"
125125
);
126126
let (res_send, res_recv) = channel();
127127
let ev = SignerEventReceiver::new(config.network.is_mainnet());

testnet/stacks-node/src/run_loop/nakamoto.rs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -723,10 +723,17 @@ impl RunLoop {
723723

724724
// at tip, and not downloading. proceed to mine.
725725
if last_tenure_sortition_height != sortition_db_height {
726-
info!(
727-
"Runloop: Synchronized full burnchain up to height {}. Proceeding to mine blocks",
728-
sortition_db_height
729-
);
726+
if is_miner {
727+
info!(
728+
"Runloop: Synchronized full burnchain up to height {}. Proceeding to mine blocks",
729+
sortition_db_height
730+
);
731+
} else {
732+
info!(
733+
"Runloop: Synchronized full burnchain up to height {}.",
734+
sortition_db_height
735+
);
736+
}
730737
last_tenure_sortition_height = sortition_db_height;
731738
globals.raise_initiative("runloop-synced".to_string());
732739
}

testnet/stacks-node/src/tests/signer/v0.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5302,7 +5302,19 @@ fn signing_in_0th_tenure_of_reward_cycle() {
53025302
})
53035303
.unwrap();
53045304

5305-
for signer in &signer_public_keys {
5305+
let block_mined = test_observer::get_mined_nakamoto_blocks()
5306+
.last()
5307+
.unwrap()
5308+
.clone();
5309+
// Must ensure that the signers that signed the block have their blocks_signed updated appropriately
5310+
for signature in &block_mined.signer_signature {
5311+
let signer = signer_public_keys
5312+
.iter()
5313+
.find(|pk| {
5314+
pk.verify(block_mined.signer_signature_hash.as_bytes(), signature)
5315+
.unwrap()
5316+
})
5317+
.expect("Unknown signer signature");
53065318
let blocks_signed = get_v3_signer(&signer, next_reward_cycle);
53075319
assert_eq!(blocks_signed, 1);
53085320
}

0 commit comments

Comments
 (0)