You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: testnet/stacks-node/src/nakamoto_node/relayer.rs
+22-5Lines changed: 22 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -521,12 +521,29 @@ impl RelayerThread {
521
521
});
522
522
}
523
523
524
+
let mining_pkh_opt = self.get_mining_key_pkh();
524
525
// a sortition happened, but we didn't win.
525
-
debug!(
526
-
"Relayer: did not win sortition {}, so stopping tenure",
527
-
&sn.sortition
528
-
);
529
-
returnSome(MinerDirective::StopTenure);
526
+
matchSelf::can_continue_tenure(
527
+
&self.sortdb,
528
+
&mutself.chainstate,
529
+
sn.consensus_hash,
530
+
mining_pkh_opt,
531
+
){
532
+
Ok(Some(_)) => {
533
+
// we can continue our ongoing tenure, but we should give the new winning miner
534
+
// a chance to send their BlockFound first.
535
+
debug!("Relayer: Did not win sortition, but am mining the ongoing tenure. Allowing the new miner some time to come online before trying to continue.");
0 commit comments