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 1
1
# Revision history for cardano-db-sync-extended
2
2
3
- ## 5.0.0 (unreleased)
3
+ ## 5.0.0
4
4
5
5
* Note that this release requires the database to be dropped and recreated.
6
6
* Correct uniqueness constraint on PoolOwner (#251 ).
Original file line number Diff line number Diff line change 1
1
# Revision history for cardano-db-sync node
2
2
3
- ## 5.0.0 (unreleased)
3
+ ## 5.0.0
4
4
5
5
* Note that this release requires the database to be dropped and recreated.
6
6
* Correct uniqueness constraint on PoolOwner (#251 ).
Original file line number Diff line number Diff line change 1
1
# Revision history for cardano-db
2
2
3
- ## 5.0.0 (unreleased)
3
+ ## 5.0.0
4
4
5
5
* Note that this release requires the database to be dropped and recreated.
6
6
* Correct uniqueness constraint on PoolOwner (#251 ).
Original file line number Diff line number Diff line change @@ -405,7 +405,9 @@ querySlotUtcTime slotNo = do
405
405
pure (blk ^. BlockTime )
406
406
pure $ maybe (Left $ DbLookupSlotNo slotNo) (Right . unValue) (listToMaybe le)
407
407
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.
409
411
queryTotalSupply :: MonadIO m => ReaderT SqlBackend m Ada
410
412
queryTotalSupply = do
411
413
res <- select . from $ \ txOut -> do
Original file line number Diff line number Diff line change @@ -21,13 +21,14 @@ cexplorer=# select * from meta ;
21
21
22
22
```
23
23
24
- ### Current total supply of Ada (` queryTotalSupply ` )
24
+ ### Current total on-chain supply of Ada (` queryTotalSupply ` )
25
25
26
26
Note: 1 ADA == 1,000,000 Lovelace
27
27
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.
29
31
30
- Currently (as of 2020/04/10) this should be the initial genesis supply minus transaction fees so far.
31
32
```
32
33
cexplorer=# select sum (value) / 1000000 as current_supply from tx_out as tx_outer where
33
34
not exists
You can’t perform that action at this time.
0 commit comments