Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

Commit ed7bdb9

Browse files
committed
Fix circulating supply calculation
decodeAllocations assumes that token_payments.csv has a header row but actually the first row is a 10M token allocation, which therefore is missed in the circulating supply calculation. Change-Id: Id0000000fedef0d50b1e62c003c4d4056d0ea603
1 parent 5d98317 commit ed7bdb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

haskell-src/exec/Chainweb/Coins.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ decodeAllocations
109109
:: ByteString
110110
-> Vector AllocationEntry
111111
decodeAllocations bs =
112-
case CSV.decode CSV.HasHeader (BL.fromStrict bs) of
112+
case CSV.decode CSV.NoHeader (BL.fromStrict bs) of
113113
Left e -> error
114114
$ "cannot construct genesis allocations: "
115115
<> show e

0 commit comments

Comments
 (0)