Skip to content

Commit ad1b0bd

Browse files
committed
CRC: fix comment and fix build error from missing import
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 15b20ce commit ad1b0bd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stackslib/src/chainstate/burn/operations/leader_block_commit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,11 +313,11 @@ impl LeaderBlockCommitOp {
313313
})?;
314314

315315
// basic sanity checks
316+
// if parent block ptr and parent vtxindex are both 0, then this block's parent is
317+
// the genesis block.
316318
if data.parent_block_ptr == 0 && data.parent_vtxindex != 0 {
317319
warn!("Invalid tx: parent block back-pointer must be positive");
318320
return Err(op_error::ParseError);
319-
// if parent block ptr and parent vtxindex are both 0, then this block's parent is
320-
// the genesis block.
321321
}
322322

323323
if u64::from(data.parent_block_ptr) >= block_height {

stackslib/src/chainstate/stacks/auth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1414,7 +1414,7 @@ impl TransactionAuth {
14141414
| TransactionAuth::Sponsored(
14151415
TransactionSpendingCondition::Singlesig(..),
14161416
TransactionSpendingCondition::OrderIndependentMultisig(..),
1417-
) => epoch_id >= Epoch30,
1417+
) => epoch_id >= StacksEpochId::Epoch30,
14181418
TransactionAuth::Standard(TransactionSpendingCondition::Multisig(..))
14191419
| TransactionAuth::Standard(TransactionSpendingCondition::Singlesig(..))
14201420
| TransactionAuth::Sponsored(

0 commit comments

Comments
 (0)