Skip to content

Commit cfe8fcd

Browse files
committed
add comment
1 parent 4fb4460 commit cfe8fcd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stacks-signer/src/chainstate.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,10 @@ impl SortitionsView {
595595
/// returns `Ok(true)` if `block` is higher, `Ok(false)` if not.
596596
///
597597
/// If we can't look up `tenure_id`, assume `block` is higher.
598+
/// This assumption is safe because this proposal ultimately must be passed
599+
/// to the `stacks-node` for proposal processing: so, if we pass the block
600+
/// height check here, we are relying on the `stacks-node` proposal endpoint
601+
/// to do the validation on the chainstate data that it has.
598602
///
599603
/// This updates the activity timer for the miner of `block`.
600604
pub fn check_latest_block_in_tenure(

0 commit comments

Comments
 (0)