Skip to content

Commit bec94e4

Browse files
authored
Merge pull request #294 from input-output-hk/erikd/release-5.0.0
Release 5.0.0
2 parents 4fdb89e + d2582c7 commit bec94e4

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

cardano-db-sync-extended/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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).

cardano-db-sync/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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).

cardano-db/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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).

cardano-db/src/Cardano/Db/Query.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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.
409411
queryTotalSupply :: MonadIO m => ReaderT SqlBackend m Ada
410412
queryTotalSupply = do
411413
res <- select . from $ \ txOut -> do

doc/interesting-queries.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

2626
Note: 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
```
3233
cexplorer=# select sum (value) / 1000000 as current_supply from tx_out as tx_outer where
3334
not exists

0 commit comments

Comments
 (0)