File tree Expand file tree Collapse file tree 5 files changed +10
-7
lines changed Expand file tree Collapse file tree 5 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 11# Revision history for cardano-db-sync-extended
22
3- ## 5.0.0 (unreleased)
3+ ## 5.0.0
44
55* Note that this release requires the database to be dropped and recreated.
66* Correct uniqueness constraint on PoolOwner (#251 ).
Original file line number Diff line number Diff line change 11# Revision history for cardano-db-sync node
22
3- ## 5.0.0 (unreleased)
3+ ## 5.0.0
44
55* Note that this release requires the database to be dropped and recreated.
66* Correct uniqueness constraint on PoolOwner (#251 ).
Original file line number Diff line number Diff line change 11# Revision history for cardano-db
22
3- ## 5.0.0 (unreleased)
3+ ## 5.0.0
44
55* Note that this release requires the database to be dropped and recreated.
66* Correct uniqueness constraint on PoolOwner (#251 ).
Original file line number Diff line number Diff line change @@ -405,7 +405,9 @@ querySlotUtcTime slotNo = do
405405 pure (blk ^. BlockTime )
406406 pure $ maybe (Left $ DbLookupSlotNo slotNo) (Right . unValue) (listToMaybe le)
407407
408- -- | Get the current total supply of Lovelace.
408+ -- | Get the current total supply of Lovelace. This only returns the on-chain supply which
409+ -- does not include staking rewards that have not yet been withdrawn. Before wihdrawal
410+ -- rewards are part of the ledger state and hence not on chain.
409411queryTotalSupply :: MonadIO m => ReaderT SqlBackend m Ada
410412queryTotalSupply = do
411413 res <- select . from $ \ txOut -> do
Original file line number Diff line number Diff line change @@ -21,13 +21,14 @@ cexplorer=# select * from meta ;
2121
2222```
2323
24- ### Current total supply of Ada (` queryTotalSupply ` )
24+ ### Current total on-chain supply of Ada (` queryTotalSupply ` )
2525
2626Note: 1 ADA == 1,000,000 Lovelace
2727
28- This just queries the UTxO set for unspent transaction outputs.
28+ This just queries the UTxO set for unspent transaction outputs. It does not include staking rewards
29+ that have have not yet been withdrawn. Before being withdrawn rewards exist in ledger state and not
30+ on-chain.
2931
30- Currently (as of 2020/04/10) this should be the initial genesis supply minus transaction fees so far.
3132```
3233cexplorer=# select sum (value) / 1000000 as current_supply from tx_out as tx_outer where
3334 not exists
You can’t perform that action at this time.
0 commit comments