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
+24-2Lines changed: 24 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -526,7 +526,29 @@ impl RelayerThread {
526
526
"Relayer: did not win sortition {}, so stopping tenure",
527
527
&sn.sortition
528
528
);
529
-
returnSome(MinerDirective::StopTenure);
529
+
530
+
let mining_pkh_opt = self.get_mining_key_pkh();
531
+
532
+
matchSelf::can_continue_tenure(
533
+
&self.sortdb,
534
+
&mutself.chainstate,
535
+
sn.consensus_hash,
536
+
mining_pkh_opt,
537
+
){
538
+
Ok(Some(_)) => {
539
+
// we could continue the ongoing tenure
540
+
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