Skip to content

Commit a120620

Browse files
committed
db: Fix ParamUpdate table entry names
The decentalisation parameter was incorrectly called 'activeSlotCoeff' and 'desiredPoolCount' is a better name than 'nOptimal'.
1 parent c615bd2 commit a120620

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cardano-db-sync/src/Cardano/DbSync/Era/Shelley/Insert.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,11 +464,11 @@ insertParamUpdate _tracer txId (Shelley.Update (Shelley.ProposedPPUpdates umap)
464464
, DB.paramUpdateKeyDeposit = fromIntegral . Shelley.unCoin <$> strictMaybeToMaybe (Shelley._keyDeposit pmap)
465465
, DB.paramUpdatePoolDeposit = fromIntegral . Shelley.unCoin <$> strictMaybeToMaybe (Shelley._poolDeposit pmap)
466466
, DB.paramUpdateMaxEpoch = unEpochNo <$> strictMaybeToMaybe (Shelley._eMax pmap)
467-
, DB.paramUpdateNOptimal = fromIntegral <$> strictMaybeToMaybe (Shelley._nOpt pmap)
467+
, DB.paramUpdateDesiredPoolCount = fromIntegral <$> strictMaybeToMaybe (Shelley._nOpt pmap)
468468
, DB.paramUpdateInfluence = fromRational <$> strictMaybeToMaybe (Shelley._a0 pmap)
469469
, DB.paramUpdateMonetaryExpandRate = Shelley.unitIntervalToDouble <$> strictMaybeToMaybe (Shelley._rho pmap)
470470
, DB.paramUpdateTreasuryGrowthRate = Shelley.unitIntervalToDouble <$> strictMaybeToMaybe (Shelley._tau pmap)
471-
, DB.paramUpdateActiveSlotCoeff = Shelley.unitIntervalToDouble <$> strictMaybeToMaybe (Shelley._d pmap)
471+
, DB.paramUpdateDecentralisation = Shelley.unitIntervalToDouble <$> strictMaybeToMaybe (Shelley._d pmap)
472472
, DB.paramUpdateEntropy = Shelley.nonceToBytes <$> strictMaybeToMaybe (Shelley._extraEntropy pmap)
473473
, DB.paramUpdateProtocolVersion = textShow <$> strictMaybeToMaybe (Shelley._protocolVersion pmap)
474474
, DB.paramUpdateMinUTxOValue = fromIntegral . Shelley.unCoin <$> strictMaybeToMaybe (Shelley._minUTxOValue pmap)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,11 @@ share
285285
keyDeposit Word64 Maybe sqltype=lovelace
286286
poolDeposit Word64 Maybe sqltype=lovelace
287287
maxEpoch Word64 Maybe sqltype=uinteger
288-
nOptimal Word64 Maybe sqltype=uinteger
288+
desiredPoolCount Word64 Maybe sqltype=uinteger
289289
influence Double Maybe -- sqltype=rational
290290
monetaryExpandRate Double Maybe -- sqltype=interval
291291
treasuryGrowthRate Double Maybe -- sqltype=interval
292-
activeSlotCoeff Double Maybe -- sqltype=interval
292+
decentralisation Double Maybe -- sqltype=interval
293293
entropy ByteString Maybe sqltype=hash32type
294294
protocolVersion Text Maybe
295295
minUTxOValue Word64 Maybe sqltype=lovelace

0 commit comments

Comments
 (0)