Skip to content

Commit 4f5ecd9

Browse files
committed
Add further comments to try_continue_tenure
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 1dcd321 commit 4f5ecd9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

testnet/stacks-node/src/nakamoto_node/relayer.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,12 +1756,16 @@ impl RelayerThread {
17561756
))
17571757
}
17581758

1759-
/// Try to start up a tenure-extend.
1759+
/// Try to start up a tenure-extend if the tenure_extend_time has expired.
1760+
///
17601761
/// Will check if the tenure-extend time was set and has expired and one of the following is true:
1761-
/// - the miner won the highest valid sortition but the burn view has changed.
1762+
/// - this miner won the highest valid sortition but the burn view has changed.
17621763
/// - the subsequent miner appears to be offline.
17631764
/// If so, it will stop any existing tenure and attempt to start a new one with an Extended reason.
17641765
/// Otherwise, it will do nothing.
1766+
///
1767+
/// Note: tenure_extend_time is only set to Some(_) if during sortition processing, the sortition
1768+
/// winner commit is corrupted or the winning miner has yet to produce a block.
17651769
fn try_continue_tenure(&mut self) {
17661770
// Should begin a tenure-extend?
17671771
if let Some(tenure_extend_time) = &self.tenure_extend_time {

0 commit comments

Comments
 (0)