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: stacks-signer/src/v0/signer.rs
+20-26Lines changed: 20 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -582,45 +582,38 @@ impl Signer {
582
582
}
583
583
}
584
584
585
-
/// WARNING: Do NOT call this function PRIOR to check_proposal or block_proposal validation succeeds.
585
+
/// WARNING: This is an incomplete check. Do NOT call this function PRIOR to check_proposal or block_proposal validation succeeds.
586
586
///
587
587
/// Re-verify a block's chain length against the last signed block within signerdb.
588
588
/// This is required in case a block has been approved since the initial checks of the block validation endpoint.
589
589
fncheck_block_against_signer_db_state(
590
-
&self,
590
+
&mutself,
591
+
stacks_client:&StacksClient,
591
592
proposed_block:&NakamotoBlock,
592
593
) -> Option<BlockResponse>{
593
594
let signer_signature_hash = proposed_block.header.signer_signature_hash();
594
595
let proposed_block_consensus_hash = proposed_block.header.consensus_hash;
595
596
// If the tenure change block confirms the expected parent block, it should confirm at least one more block than the last accepted block in the parent tenure.
0 commit comments