Skip to content

Commit

Permalink
fix: use end()
Browse files Browse the repository at this point in the history
  • Loading branch information
kylezs committed Dec 17, 2024
1 parent 58225cd commit 057eac0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ impl<

let last_seen_root = match chain_progress {
ChainProgress::WaitingForFirstConsensus => return Ok(()),
ChainProgress::Reorg{ removed: reorg_range, added: new_range } => {
ChainProgress::Reorg { removed: reorg_range, added: new_range } => {
// Delete any elections that are ongoing for any blocks in the reorg range.
for (i, election_identifier) in election_identifiers.into_iter().enumerate() {
let election = ElectoralAccess::election_mut(election_identifier);
Expand Down Expand Up @@ -215,7 +215,7 @@ impl<
*new_range.end()
},
ChainProgress::None(last_block_root_seen) => *last_block_root_seen,
ChainProgress::Continuous(witness_range) => *witness_range.start(),
ChainProgress::Continuous(witness_range) => *witness_range.end(),
};

ensure!(Chain::is_block_witness_root(last_seen_root), {
Expand Down

0 comments on commit 057eac0

Please sign in to comment.