Skip to content

Commit

Permalink
fix xnm off by one
Browse files Browse the repository at this point in the history
  • Loading branch information
nibty committed Sep 22, 2024
1 parent ee6e6fc commit cef5d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def recreate_cache_table():
account_performance as (SELECT
b.account,
SUM(blocks_per_epoch) AS total_blocks,
SUM(blocks_per_epoch * POWER(10, 18) / POWER(2, epoch - 1)) AS xnm,
SUM(blocks_per_epoch * POWER(10, 19) / POWER(2, epoch - 1)) AS xnm,
COALESCE(sb.super_block_count, 0) AS super_blocks,
COALESCE(x.total_xuni, 0) AS total_xuni
FROM grouped_blocks_by_epoch b
Expand Down

0 comments on commit cef5d76

Please sign in to comment.