Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions ledger/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,8 @@ impl<N: Network, C: ConsensusStorage<N>> Ledger<N, C> {
}

// Collect the addresses of the solutions submitted in the current epoch.
let existing_epoch_blocks: Vec<_> = (start..=current_block_height).collect();
let solution_addresses = cfg_iter!(existing_epoch_blocks)
.flat_map(|height| match self.get_solutions(*height).as_deref() {
let solution_addresses = cfg_into_iter!(start..=current_block_height)
.flat_map(|height| match self.get_solutions(height).as_deref() {
Ok(Some(solutions)) => solutions.iter().map(|(_, s)| s.address()).collect::<Vec<_>>(),
_ => vec![],
})
Expand Down