Skip to content

Commit d24cefd

Browse files
Merge #449
449: Update to latest version of dependencies r=dcoutts a=dcoutts A few code changes needed to be compatible with the latest version of `ouroboros-consensus`. Co-authored-by: Duncan Coutts <[email protected]>
2 parents 085e7b7 + e6d99f7 commit d24cefd

23 files changed

+73
-66
lines changed

cabal.project

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -64,30 +64,30 @@ source-repository-package
6464
source-repository-package
6565
type: git
6666
location: https://github.com/input-output-hk/cardano-ledger-specs
67-
tag: f9f902091aec25d52dd3590980a9b2a8447bbcc5
67+
tag: d8e06467844f8612b167f25214f243e02560468b
6868
subdir: byron/chain/executable-spec
6969

7070
source-repository-package
7171
type: git
7272
location: https://github.com/input-output-hk/cardano-ledger-specs
73-
tag: f9f902091aec25d52dd3590980a9b2a8447bbcc5
73+
tag: d8e06467844f8612b167f25214f243e02560468b
7474
subdir: byron/ledger/executable-spec
7575

7676
source-repository-package
7777
type: git
7878
location: https://github.com/input-output-hk/cardano-ledger-specs
79-
tag: f9f902091aec25d52dd3590980a9b2a8447bbcc5
79+
tag: d8e06467844f8612b167f25214f243e02560468b
8080
subdir: byron/semantics/executable-spec
8181

8282
source-repository-package
8383
type: git
8484
location: https://github.com/input-output-hk/cardano-prelude
85-
tag: 7099318744ddd10b76e50eae73f005efd2c7195c
85+
tag: 00487726c4bc21b4744e59d913334ebfeac7d68e
8686

8787
source-repository-package
8888
type: git
8989
location: https://github.com/input-output-hk/cardano-prelude
90-
tag: 7099318744ddd10b76e50eae73f005efd2c7195c
90+
tag: 00487726c4bc21b4744e59d913334ebfeac7d68e
9191
subdir: test
9292

9393
source-repository-package
@@ -110,49 +110,49 @@ source-repository-package
110110
type: git
111111
location: https://github.com/input-output-hk/iohk-monitoring-framework
112112
subdir: iohk-monitoring
113-
tag: 156391afaafca6b00d027fb9c03e1bd7a1f03003
113+
tag: dbd932704fa4520bc24e45b2c00407c5f437c12a
114114

115115
source-repository-package
116116
type: git
117117
location: https://github.com/input-output-hk/iohk-monitoring-framework
118118
subdir: contra-tracer
119-
tag: 156391afaafca6b00d027fb9c03e1bd7a1f03003
119+
tag: dbd932704fa4520bc24e45b2c00407c5f437c12a
120120

121121
source-repository-package
122122
type: git
123123
location: https://github.com/input-output-hk/iohk-monitoring-framework
124124
subdir: plugins/scribe-systemd
125-
tag: 156391afaafca6b00d027fb9c03e1bd7a1f03003
125+
tag: dbd932704fa4520bc24e45b2c00407c5f437c12a
126126

127127
source-repository-package
128128
type: git
129129
location: https://github.com/input-output-hk/iohk-monitoring-framework
130130
subdir: plugins/backend-aggregation
131-
tag: 156391afaafca6b00d027fb9c03e1bd7a1f03003
131+
tag: dbd932704fa4520bc24e45b2c00407c5f437c12a
132132

133133
source-repository-package
134134
type: git
135135
location: https://github.com/input-output-hk/iohk-monitoring-framework
136136
subdir: plugins/backend-editor
137-
tag: 156391afaafca6b00d027fb9c03e1bd7a1f03003
137+
tag: dbd932704fa4520bc24e45b2c00407c5f437c12a
138138

139139
source-repository-package
140140
type: git
141141
location: https://github.com/input-output-hk/iohk-monitoring-framework
142142
subdir: plugins/backend-ekg
143-
tag: 156391afaafca6b00d027fb9c03e1bd7a1f03003
143+
tag: dbd932704fa4520bc24e45b2c00407c5f437c12a
144144

145145
source-repository-package
146146
type: git
147147
location: https://github.com/input-output-hk/iohk-monitoring-framework
148148
subdir: plugins/backend-monitoring
149-
tag: 156391afaafca6b00d027fb9c03e1bd7a1f03003
149+
tag: dbd932704fa4520bc24e45b2c00407c5f437c12a
150150

151151
source-repository-package
152152
type: git
153153
location: https://github.com/input-output-hk/iohk-monitoring-framework
154154
subdir: tracer-transformers
155-
tag: 156391afaafca6b00d027fb9c03e1bd7a1f03003
155+
tag: dbd932704fa4520bc24e45b2c00407c5f437c12a
156156

157157
-- dependencies of iohk-monitoring
158158
source-repository-package
@@ -163,37 +163,37 @@ source-repository-package
163163
source-repository-package
164164
type: git
165165
location: https://github.com/input-output-hk/ouroboros-network
166-
tag: a7b3055c1a4ccc26455939910a6283d8947c108e
166+
tag: 408f3a3fc8be601075ee2bacdb7b7b9ebac9d2c2
167167
subdir: ouroboros-network
168168

169169
source-repository-package
170170
type: git
171171
location: https://github.com/input-output-hk/ouroboros-network
172-
tag: a7b3055c1a4ccc26455939910a6283d8947c108e
172+
tag: 408f3a3fc8be601075ee2bacdb7b7b9ebac9d2c2
173173
subdir: ouroboros-consensus
174174

175175
source-repository-package
176176
type: git
177177
location: https://github.com/input-output-hk/ouroboros-network
178-
tag: a7b3055c1a4ccc26455939910a6283d8947c108e
178+
tag: 408f3a3fc8be601075ee2bacdb7b7b9ebac9d2c2
179179
subdir: typed-protocols
180180

181181
source-repository-package
182182
type: git
183183
location: https://github.com/input-output-hk/ouroboros-network
184-
tag: a7b3055c1a4ccc26455939910a6283d8947c108e
184+
tag: 408f3a3fc8be601075ee2bacdb7b7b9ebac9d2c2
185185
subdir: typed-protocols-cbor
186186

187187
source-repository-package
188188
type: git
189189
location: https://github.com/input-output-hk/ouroboros-network
190-
tag: a7b3055c1a4ccc26455939910a6283d8947c108e
190+
tag: 408f3a3fc8be601075ee2bacdb7b7b9ebac9d2c2
191191
subdir: network-mux
192192

193193
source-repository-package
194194
type: git
195195
location: https://github.com/input-output-hk/ouroboros-network
196-
tag: a7b3055c1a4ccc26455939910a6283d8947c108e
196+
tag: 408f3a3fc8be601075ee2bacdb7b7b9ebac9d2c2
197197
subdir: io-sim-classes
198198

199199
source-repository-package

cardano-config/src/Cardano/Config/Protocol.hs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ import Cardano.Crypto (RequiresNetworkMagic, decodeHash)
3333
import qualified Cardano.Crypto.Signing as Signing
3434

3535
import Ouroboros.Consensus.Block (Header)
36-
import Ouroboros.Consensus.BlockchainTime (slotLengthFromSec)
36+
import Ouroboros.Consensus.BlockchainTime
37+
(SlotLength, slotLengthFromSec,
38+
SlotLengths, singletonSlotLengths)
3739
import Ouroboros.Consensus.Mempool.API (ApplyTxErr, GenTx, GenTxId)
3840
import Ouroboros.Consensus.Node.ProtocolInfo (NumCoreNodes (..),
3941
PBftLeaderCredentials,
@@ -86,9 +88,12 @@ type TraceConstraints blk =
8688
mockSecurityParam :: SecurityParam
8789
mockSecurityParam = SecurityParam 5
8890

89-
mockSlotLength :: Consensus.SlotLength
91+
mockSlotLength :: SlotLength
9092
mockSlotLength = slotLengthFromSec 20
9193

94+
mockSlotLengths :: SlotLengths
95+
mockSlotLengths = singletonSlotLengths mockSlotLength
96+
9297
-- | Helper for creating a 'SomeProtocol' for a mock protocol that needs the
9398
-- 'CoreNodeId' and NumCoreNodes'. If one of them is missing from the
9499
-- 'CardanoConfiguration', a 'MissingNodeInfo' exception is thrown.
@@ -138,7 +143,7 @@ fromProtocol _ _ _ _ _ _ _ _ _ ByronLegacy =
138143
left ByronLegacyProtocolNotImplemented
139144
fromProtocol _ nId mNumCoreNodes _ _ _ _ _ _ BFT =
140145
hoistEither $ mockSomeProtocol nId mNumCoreNodes $ \cid numCoreNodes ->
141-
Consensus.ProtocolMockBFT numCoreNodes cid mockSecurityParam mockSlotLength
146+
Consensus.ProtocolMockBFT numCoreNodes cid mockSecurityParam mockSlotLengths
142147
fromProtocol _ nId mNumCoreNodes _ _ _ _ _ _ Praos =
143148
hoistEither $ mockSomeProtocol nId mNumCoreNodes $ \cid numCoreNodes ->
144149
Consensus.ProtocolMockPraos numCoreNodes cid PraosParams {

cardano-node/src/Cardano/Node/Run.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ handleSimpleNode p trace nodeTracers nCli nc = do
252252
-- Watch the tip of the chain and store it in @varTip@ so we can include
253253
-- it in trace messages.
254254
let chainDB = getChainDB nodeKernel
255-
onEachChange registry id Nothing (ChainDB.getTipPoint chainDB) $ \tip ->
255+
void $ onEachChange registry id Nothing
256+
(ChainDB.getTipPoint chainDB) $ \tip ->
256257
atomically $ writeTVar varTip tip
257258
where
258259
nid :: Int

nix/.stack.nix/cardano-prelude-test.nix

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/.stack.nix/cardano-prelude.nix

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/.stack.nix/contra-tracer.nix

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/.stack.nix/cs-blockchain.nix

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/.stack.nix/cs-ledger.nix

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/.stack.nix/io-sim-classes.nix

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/.stack.nix/iohk-monitoring.nix

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/.stack.nix/lobemo-backend-aggregation.nix

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/.stack.nix/lobemo-backend-editor.nix

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/.stack.nix/lobemo-backend-ekg.nix

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/.stack.nix/lobemo-backend-monitoring.nix

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/.stack.nix/lobemo-scribe-systemd.nix

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/.stack.nix/network-mux.nix

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/.stack.nix/ouroboros-consensus.nix

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/.stack.nix/ouroboros-network.nix

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/.stack.nix/small-steps.nix

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/.stack.nix/tracer-transformers.nix

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)