Skip to content

Commit

Permalink
Merge pull request #1874 from IntersectMBO/kderme/fix-pool-stat
Browse files Browse the repository at this point in the history
Fix number of delegators in pool stats
  • Loading branch information
kderme authored Oct 8, 2024
2 parents afa332c + e02b150 commit aa2e0c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,4 +217,4 @@ countStakePerPool delegs (Ledger.Stake stake) = VMap.foldlWithKey accum Map.empt
Nothing -> acc
Just kh -> Map.insertWith addDel kh (Ledger.fromCompact compactCoin, 1) acc

addDel (c, n) (c', _) = (c <+> c', n + 1)
addDel (c, n) (c', n') = (c <+> c', n + n')

0 comments on commit aa2e0c7

Please sign in to comment.