fix: include all state ids

loop doesn't include max_state_id because the upperbound is exclusive
loop also doesnt work where min_state_id = max_state_id
pull/12/head
Philipp_DE 1 year ago committed by GitHub
parent a6a7c1ff75
commit e4d25d29ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -30,7 +30,7 @@ impl Blocks {
blocks.iter().for_each(|b| {
let min_state_id = b.min_state_id.unwrap_or(b.id << 4);
let max_state_id = b.max_state_id.unwrap_or(min_state_id + 15);
(min_state_id..max_state_id).for_each(|s| {
(min_state_id..=max_state_id).for_each(|s| {
blocks_map.insert(s, b.clone());
});
});

Loading…
Cancel
Save