File tree Expand file tree Collapse file tree 2 files changed +3
-16
lines changed
cardano-db/src/Cardano/Db Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ module Cardano.Db.Query (
26
26
queryShelleyGenesisSupply ,
27
27
queryLatestBlock ,
28
28
queryLatestPoints ,
29
- queryAddressWithReward ,
30
29
queryLatestEpochNo ,
31
30
queryLatestBlockId ,
32
31
queryLatestSlotNo ,
@@ -160,7 +159,6 @@ import Database.Esqueleto.Experimental (
160
159
count ,
161
160
countRows ,
162
161
desc ,
163
- distinct ,
164
162
entityKey ,
165
163
entityVal ,
166
164
from ,
@@ -504,20 +502,6 @@ queryLatestPoints = do
504
502
pure (blk ^. BlockSlotNo , blk ^. BlockHash )
505
503
pure $ fmap unValue2 res
506
504
507
- -- This is an expensive query, but it is only used once when initiating the cStake LRU cache.
508
- -- The idea being to get a list of current registered stake addresses using rewards.
509
- queryAddressWithReward :: MonadIO m => Int -> ReaderT SqlBackend m [(ByteString , StakeAddressId )]
510
- queryAddressWithReward limitNumber = do
511
- res <- select $ distinct $ do
512
- (stk :& _) <-
513
- from
514
- $ table @ StakeAddress
515
- `innerJoin` table @ Reward
516
- `on` (\ (stk :& rwd) -> stk ^. StakeAddressId ==. rwd ^. RewardAddrId )
517
- limit $ fromIntegral limitNumber
518
- pure (stk ^. StakeAddressHashRaw , stk ^. StakeAddressId )
519
- pure $ fmap (\ (Value hashRaw, Value stakeAddressId) -> (hashRaw, stakeAddressId)) res
520
-
521
505
queryLatestEpochNo :: MonadIO m => ReaderT SqlBackend m Word64
522
506
queryLatestEpochNo = do
523
507
res <- select $ do
Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ This is equivalent to setting:
113
113
},
114
114
"governance": "disable",
115
115
"offchain_pool_data": "disable"
116
+ "pool_stat": "disable"
116
117
```
117
118
118
119
Initially populates only a few tables, like ` block ` and ` tx ` . It maintains a ledger state but
@@ -141,6 +142,7 @@ This is equivalent to setting:
141
142
},
142
143
"governance": "enable",
143
144
"offchain_pool_data": "disable"
145
+ "pool_stat": "disable"
144
146
145
147
```
146
148
@@ -167,6 +169,7 @@ This is equivalent to setting:
167
169
},
168
170
"governance": "disable",
169
171
"offchain_pool_data": "disable"
172
+ "pool_stat": "disable"
170
173
```
171
174
172
175
Disables almost all data except ` block ` and ` tx ` tables.
You can’t perform that action at this time.
0 commit comments