computer: simplified a bunch of things

This commit is contained in:
nym21
2026-02-26 19:37:22 +01:00
parent 9e4fe62de2
commit cccaf6b206
252 changed files with 3788 additions and 7279 deletions

View File

@@ -32,7 +32,7 @@ impl Query {
for (pool_id, pool_vecs) in &computer.pools.vecs {
let cumulative = &pool_vecs
.blocks_mined
.height_cumulative;
.cumulative.height;
let count_at_end: u32 = *cumulative.collect_one(current_height).unwrap_or_default();
@@ -100,7 +100,7 @@ impl Query {
let cumulative = &pool_vecs
.blocks_mined
.height_cumulative;
.cumulative.height;
// Get total blocks (all time)
let total_all: u32 = *cumulative.collect_one(current_height).unwrap_or_default();