Skip to content

Commit aa2e0c7

Browse files
authored
Merge pull request #1874 from IntersectMBO/kderme/fix-pool-stat
Fix number of delegators in pool stats
2 parents afa332c + e02b150 commit aa2e0c7

File tree

1 file changed

+1
-1
lines changed
  • cardano-db-sync/src/Cardano/DbSync/Era/Shelley/Generic

1 file changed

+1
-1
lines changed

cardano-db-sync/src/Cardano/DbSync/Era/Shelley/Generic/StakeDist.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,4 +217,4 @@ countStakePerPool delegs (Ledger.Stake stake) = VMap.foldlWithKey accum Map.empt
217217
Nothing -> acc
218218
Just kh -> Map.insertWith addDel kh (Ledger.fromCompact compactCoin, 1) acc
219219

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

0 commit comments

Comments
 (0)