Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
fix: use map len
Browse files Browse the repository at this point in the history
  • Loading branch information
seerscode committed May 8, 2019
1 parent 86b488c commit 997bb08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/consensus/slots/src/aux_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub fn check_equivocation<C, H>(
},
};

if slot > PRUNING_BOUND {
if slot_header_map.len() > PRUNING_BOUND {
slot_header_map = slot_header_map.split_off(&(slot - MAX_SLOT_CAPACITY));
}

Expand Down

0 comments on commit 997bb08

Please sign in to comment.