Skip to content

Commit 2e963e7

Browse files
committed
chore: update comments and logs for clarity
1 parent c213115 commit 2e963e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ impl RelayerThread {
941941
}
942942

943943
/// Determine the type of tenure change to issue based on whether this
944-
/// miner successfully issued a tenure change in the last tenure.
944+
/// miner was the last successful miner (miner of the canonical tip).
945945
fn determine_tenure_type(
946946
&self,
947947
canonical_snapshot: BlockSnapshot,
@@ -950,14 +950,14 @@ impl RelayerThread {
950950
mining_pkh: Hash160,
951951
) -> (StacksBlockId, BlockSnapshot, MinerReason) {
952952
if canonical_snapshot.miner_pk_hash != Some(mining_pkh) {
953-
debug!("Relayer: Failed to issue a tenure change payload in our last tenure. Issue a new tenure change payload.");
953+
debug!("Relayer: Miner was not the last successful miner. Issue a new tenure change payload.");
954954
(
955955
StacksBlockId(last_snapshot.winning_stacks_block_hash.0),
956956
last_snapshot,
957957
MinerReason::EmptyTenure,
958958
)
959959
} else {
960-
debug!("Relayer: Successfully issued a tenure change payload. Issue a continue extend from the chain tip.");
960+
debug!("Relayer: Miner was the last successful miner. Issue a tenure extend from the chain tip.");
961961
(
962962
self.sortdb.get_canonical_stacks_tip_block_id(),
963963
canonical_snapshot,

0 commit comments

Comments
 (0)