Skip to content

Commit

Permalink
chore: Apply PR comment from Aaron
Browse files Browse the repository at this point in the history
  • Loading branch information
jbencin committed Jan 24, 2025
1 parent 7e2d60e commit 82313d3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions stackslib/src/chainstate/stacks/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -521,18 +521,14 @@ impl TestStacksNode {
fork_tip: &BlockSnapshot,
miner: &TestMiner,
) -> Option<BlockSnapshot> {
for commit_op in miner.block_commits.iter().rev() {
if let Some(sn) = SortitionDB::get_block_snapshot_for_winning_stacks_block(
miner.block_commits.iter().rev().find_map(|commit_op| {
SortitionDB::get_block_snapshot_for_winning_stacks_block(
ic,
&fork_tip.sortition_id,
&commit_op.block_header_hash,
)
.unwrap()
{
return Some(sn);
}
}
return None;
})
}

pub fn get_miner_balance(clarity_tx: &mut ClarityTx, addr: &StacksAddress) -> u128 {
Expand Down

0 comments on commit 82313d3

Please sign in to comment.