mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-21 07:58:11 -07:00
global: fixes
This commit is contained in:
@@ -7,7 +7,7 @@ use vecdb::{BinaryTransform, Database, Exit, ReadableVec, Rw, StorageMode, Versi
|
||||
use crate::{
|
||||
blocks, indexes,
|
||||
internal::{
|
||||
ValuePerBlockCumulativeRolling, MaskSats, PercentRollingWindows, RatioU64Bp16,
|
||||
MaskSats, PercentRollingWindows, RatioU64Bp16, ValuePerBlockCumulativeRolling,
|
||||
WindowStartVec, Windows,
|
||||
},
|
||||
mining, prices,
|
||||
|
||||
@@ -14,9 +14,7 @@ impl PoolHeights {
|
||||
let mut map: FxHashMap<PoolSlug, Vec<Height>> = FxHashMap::default();
|
||||
let reader = pool.reader();
|
||||
for h in 0..len {
|
||||
map.entry(reader.get(h))
|
||||
.or_default()
|
||||
.push(Height::from(h));
|
||||
map.entry(reader.get(h)).or_default().push(Height::from(h));
|
||||
}
|
||||
Self(Arc::new(RwLock::new(map)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user