Skip to content

Commit

Permalink
Fix number of delegators
Browse files Browse the repository at this point in the history
This used to go max 2
  • Loading branch information
kderme committed Oct 7, 2024
1 parent e8a00e5 commit e02b150
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 e02b150

Please sign in to comment.