Skip to content

Commit 0c63ec0

Browse files
committed
Downgrade dependencies to match node
1 parent e6ca79a commit 0c63ec0

File tree

4 files changed

+26
-31
lines changed

4 files changed

+26
-31
lines changed

cabal.project

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ source-repository-package
9999
source-repository-package
100100
type: git
101101
location: https://github.com/input-output-hk/cardano-base
102-
tag: 592aa61d657ad5935a33bace1243abce3728b643
103-
--sha256: 1bgq3a2wfdz24jqfwylcc6jjg5aji8dpy5gjkhpnmkkvgcr2rkyb
102+
tag: e8a48cf0500b03c744c7fc6f2fedb86e8bdbe055
103+
--sha256: 0s3w796y4bgjidg5iwapdq88cq9ipy346gagbip6xlqxdvpp99xj
104104
subdir:
105105
base-deriving-via
106106
binary
@@ -121,8 +121,8 @@ source-repository-package
121121
source-repository-package
122122
type: git
123123
location: https://github.com/input-output-hk/cardano-ledger-specs
124-
tag: ec51e4fb1b17461ab612cf427b79f1742942e8cb
125-
--sha256: 05bwy7x1asyfshqsfsyv2c70qwrxp4680xlvhwdm1hz9bi0lpq41
124+
tag: f827a4321e42f528e25f6079f7af3eb18f10d391
125+
--sha256: 0dmgxg7cpgz4lnscqrrk4gakw9w90dx8ljv5wr923rfp9nyzc5qf
126126
subdir:
127127
alonzo/impl
128128
byron/chain/executable-spec
@@ -132,7 +132,6 @@ source-repository-package
132132
byron/ledger/impl
133133
byron/ledger/impl/test
134134
cardano-ledger-core
135-
cardano-protocol-tpraos
136135
semantics/executable-spec
137136
semantics/small-steps-test
138137
shelley/chain-and-ledger/dependencies/non-integer
@@ -144,8 +143,8 @@ source-repository-package
144143
source-repository-package
145144
type: git
146145
location: https://github.com/input-output-hk/cardano-node
147-
tag: 191b91eec3c7d845a55347781329d50bf36871d7
148-
--sha256: 1y0a80fmrqf7561yqp4p2vx36yrhh83222b01sall2rk791y4yf0
146+
tag: 0fb43f4e3da8b225f4f86557aed90a183981a64f
147+
--sha256: 0mkir1pg78hp7adxgb8cz6jj4izs07np23fxxnwhkvf0ql92nan7
149148
subdir:
150149
cardano-api
151150
cardano-config
@@ -190,8 +189,8 @@ source-repository-package
190189
source-repository-package
191190
type: git
192191
location: https://github.com/input-output-hk/ouroboros-network
193-
tag: 5d37a927046bc7da2887830d8e35cf604622ce09
194-
--sha256: 1620zcnivgm1wp1kq3vqc44g77lv7dalzgywc96qsblf1sv9fw3p
192+
tag: aa7bc087737edca29133844b14bb7cba2cd213f2
193+
--sha256: 1rcjlj5z8igrfy07lkdrlm4xcx9a3g0jl69wvqk0vvff4hfr00ar
195194
subdir:
196195
cardano-client
197196
io-sim
@@ -211,8 +210,8 @@ source-repository-package
211210
source-repository-package
212211
type: git
213212
location: https://github.com/input-output-hk/plutus
214-
tag: 15121dd4dc66df7c17c6c0f2f4a8702ad841c020
215-
--sha256: 1g5jm1r58x5ly3vsk8hr3dviqnv1bqhxi2b87vmr53554pd6zcqp
213+
tag: edc6d4672c41de4485444122ff843bc86ff421a0
214+
--sha256: 12dmxp11xlal8rr3371sir5q4f7gscmyl84nw6wm47mb5b28bk92
216215
subdir:
217216
plutus-core
218217
plutus-ledger-api

cardano-db-sync/cardano-db-sync.cabal

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ library
9999
, cardano-ledger-core
100100
, cardano-ledger-shelley-ma
101101
, cardano-prelude
102-
, cardano-protocol-tpraos
103102
, cardano-slotting
104103
, containers
105104
, esqueleto

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

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ import Cardano.Ledger.SafeHash (SafeToHash)
3535

3636
import Cardano.Prelude
3737

38-
import qualified Cardano.Protocol.TPraos.BHeader as Protocol
39-
import qualified Cardano.Protocol.TPraos.OCert as Protocol
40-
4138
import Cardano.Slotting.Slot (SlotNo (..))
4239

4340
import Ouroboros.Consensus.Cardano.Block (StandardAllegra, StandardAlonzo, StandardCrypto,
@@ -48,6 +45,7 @@ import qualified Ouroboros.Consensus.Shelley.Ledger.Block as Consensus
4845
import Ouroboros.Network.Block (BlockNo (..))
4946

5047
import qualified Shelley.Spec.Ledger.BlockChain as Shelley
48+
import qualified Shelley.Spec.Ledger.OCert as Shelley
5149
import qualified Shelley.Spec.Ledger.PParams as Shelley
5250
import qualified Shelley.Spec.Ledger.Tx as Shelley
5351

@@ -152,31 +150,31 @@ fromAlonzoBlock pp blk =
152150
alonzoBlockTxs :: ShelleyBlock StandardAlonzo -> [(Word64, Ledger.Tx StandardAlonzo)]
153151
alonzoBlockTxs = zip [0 ..] . toList . fromTxSeq @StandardAlonzo . Shelley.bbody . Consensus.shelleyBlockRaw
154152

155-
blockBody :: ShelleyBasedEra era => ShelleyBlock era -> Protocol.BHBody (Crypto era)
156-
blockBody = Protocol.bhbody . Shelley.bheader . Consensus.shelleyBlockRaw
153+
blockBody :: ShelleyBasedEra era => ShelleyBlock era -> Shelley.BHBody (Crypto era)
154+
blockBody = Shelley.bhbody . Shelley.bheader . Consensus.shelleyBlockRaw
157155

158156
blockHash :: ShelleyBlock era -> ByteString
159157
blockHash =
160-
Crypto.hashToBytes . Protocol.unHashHeader
158+
Crypto.hashToBytes . Shelley.unHashHeader
161159
. Consensus.unShelleyHash . Consensus.shelleyBlockHeaderHash
162160

163161
blockNumber :: ShelleyBasedEra era => ShelleyBlock era -> BlockNo
164-
blockNumber = Protocol.bheaderBlockNo . blockBody
162+
blockNumber = Shelley.bheaderBlockNo . blockBody
165163

166164
blockPrevHash :: ShelleyBasedEra era => ShelleyBlock era -> ByteString
167165
blockPrevHash blk =
168-
case Protocol.bheaderPrev (Protocol.bhbody . Shelley.bheader $ Consensus.shelleyBlockRaw blk) of
169-
Protocol.GenesisHash -> "Cardano.DbSync.Era.Shelley.Generic.Block.blockPrevHash"
170-
Protocol.BlockHash (Protocol.HashHeader h) -> Crypto.hashToBytes h
166+
case Shelley.bheaderPrev (Shelley.bhbody . Shelley.bheader $ Consensus.shelleyBlockRaw blk) of
167+
Shelley.GenesisHash -> "Cardano.DbSync.Era.Shelley.Generic.Block.blockPrevHash"
168+
Shelley.BlockHash (Shelley.HashHeader h) -> Crypto.hashToBytes h
171169

172170
blockOpCert :: ShelleyBasedEra era => ShelleyBlock era -> ByteString
173-
blockOpCert = KES.rawSerialiseVerKeyKES . Protocol.ocertVkHot . Protocol.bheaderOCert . blockBody
171+
blockOpCert = KES.rawSerialiseVerKeyKES . Shelley.ocertVkHot . Shelley.bheaderOCert . blockBody
174172

175173
blockOpCertCounter :: ShelleyBasedEra era => ShelleyBlock era -> Word64
176-
blockOpCertCounter = Protocol.ocertN . Protocol.bheaderOCert . blockBody
174+
blockOpCertCounter = Shelley.ocertN . Shelley.bheaderOCert . blockBody
177175

178176
blockProtoVersion :: ShelleyBasedEra era => ShelleyBlock era -> Shelley.ProtVer
179-
blockProtoVersion = Protocol.bprotver . blockBody
177+
blockProtoVersion = Shelley.bprotver . blockBody
180178

181179
blockSize :: ShelleyBasedEra era => ShelleyBlock era -> Word64
182180
blockSize = fromIntegral . Shelley.bBodySize . Shelley.bbody . Consensus.shelleyBlockRaw
@@ -190,16 +188,16 @@ blockTxs
190188
blockTxs = zip [0 ..] . unTxSeq . Shelley.bbody . Consensus.shelleyBlockRaw
191189

192190
blockVrfKeyView :: (ShelleyBasedEra era, VRF (Crypto era) ~ PraosVRF) => ShelleyBlock era -> Text
193-
blockVrfKeyView = Api.serialiseToBech32 . Api.VrfVerificationKey . Protocol.bheaderVrfVk . blockBody
191+
blockVrfKeyView = Api.serialiseToBech32 . Api.VrfVerificationKey . Shelley.bheaderVrfVk . blockBody
194192

195193
creatorPoolHash :: ShelleyBasedEra era => ShelleyBlock era -> ByteString
196-
creatorPoolHash = unKeyHashRaw . Protocol.issuerIDfromBHBody . blockBody
194+
creatorPoolHash = unKeyHashRaw . Shelley.issuerIDfromBHBody . blockBody
197195

198196
slotLeaderHash :: ShelleyBasedEra era => ShelleyBlock era -> ByteString
199-
slotLeaderHash = unKeyHashRaw . Protocol.issuerIDfromBHBody . blockBody
197+
slotLeaderHash = unKeyHashRaw . Shelley.issuerIDfromBHBody . blockBody
200198

201199
slotNumber :: (Crypto era ~ StandardCrypto, ShelleyBasedEra era) => ShelleyBlock era -> SlotNo
202-
slotNumber = Protocol.bheaderSlotNo . blockBody
200+
slotNumber = Shelley.bheaderSlotNo . blockBody
203201

204202
unTxSeq
205203
:: (ShelleyBasedEra era, SafeToHash (Witnesses era))

cardano-db-tool/src/Cardano/Db/Tool/Validate/Balance.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ getAlonzoBalance addrText utxo = do
8989
compactTxOutValue :: CompactAddr (Crypto era) -> Ledger.TxOut era -> Maybe Coin
9090
compactTxOutValue caddr txOut =
9191
let (scaddr, val) = case txOut of
92-
Alonzo.TxOutCompact a v -> (a, v)
93-
Alonzo.TxOutCompactDH a v _ -> (a, v)
92+
Alonzo.TxOutCompact a v _ -> (a, v)
9493
in if caddr == scaddr
9594
then Just $ coin (fromCompact val)
9695
else Nothing

0 commit comments

Comments
 (0)