Skip to content

Commit 341ea87

Browse files
authored
Merge pull request #5944 from IntersectMBO/jordan/bump-chap-20240807
cardano-node 9.2.0 release
2 parents e6a9c24 + bab2e4b commit 341ea87

File tree

58 files changed

+887
-543
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+887
-543
lines changed

bench/cardano-profile/cardano-profile.cabal

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ license: Apache-2.0
1313
license-files: LICENSE
1414
NOTICE
1515
build-type: Simple
16-
extra-source-files: README.md
1716
data-files: data/all-profiles.json
1817
data/ci-test-bage.json
1918
data/genesis/epoch-timeline.json

bench/locli/locli.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ library
120120
, optparse-generic
121121
, ouroboros-consensus
122122
-- for Data.SOP.Strict:
123-
, ouroboros-network ^>= 0.16.1
123+
, ouroboros-network ^>= 0.17
124124
, ouroboros-network-api
125125
, process
126126
, quiet

bench/plutus-scripts-bench/plutus-scripts-bench.cabal

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ library
8080
-- IOG dependencies
8181
--------------------------
8282
build-depends:
83-
, cardano-api ^>=9.2
84-
, plutus-ledger-api ^>=1.31
85-
, plutus-tx ^>=1.31
86-
, plutus-tx-plugin ^>=1.31
83+
, cardano-api ^>=9.3
84+
, plutus-ledger-api ^>=1.32
85+
, plutus-tx ^>=1.32
86+
, plutus-tx-plugin ^>=1.32
8787

8888
------------------------
8989
-- Non-IOG dependencies

bench/tx-generator/src/Cardano/Benchmarking/GeneratorTx/SubmissionClient.hs

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -25,43 +25,38 @@ module Cardano.Benchmarking.GeneratorTx.SubmissionClient
2525
, txSubmissionClient
2626
) where
2727

28-
import Cardano.Prelude hiding (ByteString, atomically, retry, state, threadDelay)
29-
import Prelude (error, fail)
30-
31-
import Control.Arrow ((&&&))
32-
33-
import qualified Data.List as L
34-
import qualified Data.List.Extra as L
35-
import qualified Data.List.NonEmpty as NE
36-
import qualified Data.Text as T
28+
import Cardano.Api hiding (Active)
29+
import Cardano.Api.Shelley (fromShelleyTxId, toConsensusGenTx)
3730

31+
import Cardano.Benchmarking.LogTypes
32+
import Cardano.Benchmarking.Types
33+
import Cardano.Logging
34+
import Cardano.Prelude hiding (ByteString, atomically, retry, state, threadDelay)
3835
import Cardano.Tracing.OrphanInstances.Byron ()
3936
import Cardano.Tracing.OrphanInstances.Common ()
4037
import Cardano.Tracing.OrphanInstances.Consensus ()
4138
import Cardano.Tracing.OrphanInstances.Network ()
4239
import Cardano.Tracing.OrphanInstances.Shelley ()
43-
4440
import qualified Ouroboros.Consensus.Cardano as Consensus (CardanoBlock)
41+
import qualified Ouroboros.Consensus.Cardano.Block as Block
42+
(TxId (GenTxIdAllegra, GenTxIdAlonzo, GenTxIdBabbage, GenTxIdConway, GenTxIdMary, GenTxIdShelley))
4543
import Ouroboros.Consensus.Ledger.SupportsMempool (GenTx, GenTxId, txInBlockSize)
4644
import qualified Ouroboros.Consensus.Ledger.SupportsMempool as Mempool
4745
import Ouroboros.Consensus.Shelley.Eras (StandardCrypto)
4846
import qualified Ouroboros.Consensus.Shelley.Ledger.Mempool as Mempool (TxId (ShelleyTxId))
49-
50-
import qualified Ouroboros.Consensus.Cardano.Block as Block
51-
(TxId (GenTxIdAllegra, GenTxIdAlonzo, GenTxIdBabbage, GenTxIdConway, GenTxIdMary, GenTxIdShelley))
52-
5347
import Ouroboros.Network.Protocol.TxSubmission2.Client (ClientStIdle (..),
5448
ClientStTxIds (..), ClientStTxs (..), TxSubmissionClient (..))
5549
import Ouroboros.Network.Protocol.TxSubmission2.Type (BlockingReplyList (..),
56-
TokBlockingStyle (..), TxSizeInBytes)
50+
NumTxIdsToAck (..), NumTxIdsToReq (..), TokBlockingStyle (..))
51+
import Ouroboros.Network.SizeInBytes
5752

58-
import Cardano.Api hiding (Active)
59-
import Cardano.Api.Shelley (fromShelleyTxId, toConsensusGenTx)
60-
61-
import Cardano.Logging
53+
import Prelude (error, fail)
6254

63-
import Cardano.Benchmarking.LogTypes
64-
import Cardano.Benchmarking.Types
55+
import Control.Arrow ((&&&))
56+
import qualified Data.List as L
57+
import qualified Data.List.Extra as L
58+
import qualified Data.List.NonEmpty as NE
59+
import qualified Data.Text as T
6560
type CardanoBlock = Consensus.CardanoBlock StandardCrypto
6661

6762
data SubmissionThreadStats
@@ -129,10 +124,10 @@ txSubmissionClient tr bmtr initialTxSource endOfProtocolCallback =
129124
requestTxIds :: forall blocking.
130125
LocalState era
131126
-> TokBlockingStyle blocking
132-
-> Word16
133-
-> Word16
127+
-> NumTxIdsToAck
128+
-> NumTxIdsToReq
134129
-> m (ClientStTxIds blocking (GenTxId CardanoBlock) (GenTx CardanoBlock) m ())
135-
requestTxIds state blocking ackNum reqNum = do
130+
requestTxIds state blocking (NumTxIdsToAck ackNum) (NumTxIdsToReq reqNum) = do
136131
let ack = Ack $ fromIntegral ackNum
137132
req = Req $ fromIntegral reqNum
138133
traceWith tr $ reqIdsTrace ack req blocking
@@ -182,8 +177,8 @@ txSubmissionClient tr bmtr initialTxSource endOfProtocolCallback =
182177
, stsUnavailable =
183178
stsUnavailable stats + Unav (length missIds)}))
184179

185-
txToIdSize :: tx -> (GenTxId CardanoBlock, TxSizeInBytes)
186-
txToIdSize = (Mempool.txId &&& txInBlockSize) . toGenTx
180+
txToIdSize :: tx -> (GenTxId CardanoBlock, SizeInBytes)
181+
txToIdSize = (Mempool.txId &&& (SizeInBytes . txInBlockSize)) . toGenTx
187182

188183
toGenTx :: tx -> GenTx CardanoBlock
189184
toGenTx tx = toConsensusGenTx $ TxInMode (shelleyBasedEra @era) tx

bench/tx-generator/src/Cardano/TxGenerator/Setup/NodeConfig.hs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,8 @@ module Cardano.TxGenerator.Setup.NodeConfig
88
(module Cardano.TxGenerator.Setup.NodeConfig)
99
where
1010

11-
import Control.Applicative (Const (Const), getConst)
12-
import Control.Monad.Trans.Except (runExceptT)
13-
import Data.Bifunctor (first)
14-
import Data.Monoid
15-
16-
import qualified Ouroboros.Consensus.Cardano as Consensus
17-
1811
import Cardano.Api (BlockType (..), ProtocolInfoArgs (..))
12+
1913
import qualified Cardano.Ledger.Api.Transition as Ledger (tcShelleyGenesisL)
2014
import Cardano.Node.Configuration.POM
2115
import Cardano.Node.Handlers.Shutdown (ShutdownConfig (..))
@@ -25,6 +19,12 @@ import Cardano.Node.Types (ConfigYamlFilePath (..), GenesisFile,
2519
NodeProtocolConfiguration (..), NodeShelleyProtocolConfiguration (..),
2620
ProtocolFilepaths (..))
2721
import Cardano.TxGenerator.Types
22+
import qualified Ouroboros.Consensus.Cardano.Node as Consensus
23+
24+
import Control.Applicative (Const (Const), getConst)
25+
import Control.Monad.Trans.Except (runExceptT)
26+
import Data.Bifunctor (first)
27+
import Data.Monoid
2828

2929

3030
-- | extract genesis from a Cardano protocol
@@ -35,7 +35,7 @@ getGenesis (SomeConsensusProtocol CardanoBlockType proto)
3535
= getConst $ Ledger.tcShelleyGenesisL Const transCfg
3636
where
3737
ProtocolInfoArgsCardano Consensus.CardanoProtocolParams
38-
{ Consensus.ledgerTransitionConfig = transCfg
38+
{ Consensus.cardanoLedgerTransitionConfig = transCfg
3939
} = proto
4040

4141
-- | extract the path to genesis file from a NodeConfiguration for Cardano protocol

bench/tx-generator/tx-generator.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ library
106106
, attoparsec-aeson
107107
, base16-bytestring
108108
, bytestring
109-
, cardano-api ^>= 9.2
109+
, cardano-api ^>= 9.3
110110
, cardano-binary
111-
, cardano-cli ^>= 9.3
111+
, cardano-cli ^>= 9.4
112112
, cardano-crypto-class
113113
, cardano-crypto-wrapper
114114
, cardano-data

cabal.project

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repository cardano-haskell-packages
1414
-- you need to run if you change them
1515
index-state:
1616
, hackage.haskell.org 2024-09-05T18:39:40Z
17-
, cardano-haskell-packages 2024-09-05T16:30:09Z
17+
, cardano-haskell-packages 2024-09-10T12:51:27Z
1818

1919
packages:
2020
cardano-node
@@ -66,3 +66,4 @@ allow-newer:
6666
-- IMPORTANT
6767
-- Do NOT add more source-repository-package stanzas here unless they are strictly
6868
-- temporary! Please read the section in CONTRIBUTING about updating dependencies.
69+

cardano-node-chairman/cardano-node-chairman.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ executable cardano-node-chairman
4444
build-depends: cardano-api
4545
, cardano-crypto-class
4646
, cardano-git-rev ^>= 0.2.2
47-
, cardano-node ^>= 9.1
47+
, cardano-node ^>= 9.2
4848
, cardano-prelude
4949
, containers
5050
, contra-tracer
@@ -89,5 +89,5 @@ test-suite chairman-tests
8989
ghc-options: -threaded -rtsopts "-with-rtsopts=-N -T"
9090

9191
build-tool-depends: cardano-node:cardano-node
92-
, cardano-cli:cardano-cli ^>= 9.3
92+
, cardano-cli:cardano-cli ^>= 9.4
9393
, cardano-node-chairman:cardano-node-chairman

cardano-node/cardano-node.cabal

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 3.0
22

33
name: cardano-node
4-
version: 9.1.0
4+
version: 9.2.0
55
synopsis: The cardano full node
66
description: The cardano full node.
77
category: Cardano,
@@ -38,8 +38,8 @@ common project-config
3838
-Wpartial-fields
3939
-Wredundant-constraints
4040
-Wunused-packages
41-
common maybe-Win32
42-
if os(windows)
41+
common maybe-Win32
42+
if os(windows)
4343
build-depends: Win32
4444

4545
common maybe-unix
@@ -55,7 +55,7 @@ common text
5555
library
5656
import: project-config
5757
, maybe-unix
58-
, maybe-Win32
58+
, maybe-Win32
5959
, text
6060
if flag(unexpected_thunks)
6161
cpp-options: -DUNEXPECTED_THUNKS
@@ -145,7 +145,7 @@ library
145145
, async
146146
, base16-bytestring
147147
, bytestring
148-
, cardano-api ^>= 9.2
148+
, cardano-api ^>= 9.3
149149
, cardano-crypto-class
150150
, cardano-crypto-wrapper
151151
, cardano-git-rev ^>=0.2.2
@@ -187,13 +187,13 @@ library
187187
, nothunks
188188
, optparse-applicative-fork >= 0.18.1
189189
, ouroboros-consensus ^>= 0.20
190-
, ouroboros-consensus-cardano ^>= 0.18
190+
, ouroboros-consensus-cardano ^>= 0.19
191191
, ouroboros-consensus-diffusion ^>= 0.17
192192
, ouroboros-consensus-protocol
193-
, ouroboros-network-api ^>= 0.7.3
194-
, ouroboros-network ^>= 0.16.1
193+
, ouroboros-network-api ^>= 0.9
194+
, ouroboros-network ^>= 0.17
195195
, ouroboros-network-framework
196-
, ouroboros-network-protocols ^>= 0.9
196+
, ouroboros-network-protocols ^>= 0.10
197197
, prettyprinter
198198
, prettyprinter-ansi-terminal
199199
, psqueues

cardano-node/src/Cardano/Node/Configuration/POM.hs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import Cardano.Tracing.Config
3333
import Cardano.Tracing.OrphanInstances.Network ()
3434
import Ouroboros.Consensus.Mempool (MempoolCapacityBytes (..),
3535
MempoolCapacityBytesOverride (..))
36+
import Ouroboros.Consensus.Node (NodeDatabasePaths (..))
3637
import qualified Ouroboros.Consensus.Node as Consensus (NetworkP2PMode (..))
3738
import Ouroboros.Consensus.Storage.LedgerDB.DiskPolicy (NumOfDiskSnapshots (..),
3839
SnapshotInterval (..))
@@ -91,7 +92,7 @@ data NodeConfiguration
9192
-- (logging, tracing, protocol, slot length etc)
9293
, ncConfigFile :: !ConfigYamlFilePath
9394
, ncTopologyFile :: !TopologyFile
94-
, ncDatabaseFile :: !DbFile
95+
, ncDatabaseFile :: !NodeDatabasePaths
9596
, ncProtocolFiles :: !ProtocolFilepaths
9697
, ncValidateDB :: !Bool
9798
, ncShutdownConfig :: !ShutdownConfig
@@ -173,7 +174,7 @@ data PartialNodeConfiguration
173174
-- (logging, tracing, protocol, slot length etc)
174175
, pncConfigFile :: !(Last ConfigYamlFilePath)
175176
, pncTopologyFile :: !(Last TopologyFile)
176-
, pncDatabaseFile :: !(Last DbFile)
177+
, pncDatabaseFile :: !(Last NodeDatabasePaths)
177178
, pncProtocolFiles :: !(Last ProtocolFilepaths)
178179
, pncValidateDB :: !(Last Bool)
179180
, pncShutdownConfig :: !(Last ShutdownConfig)
@@ -242,6 +243,7 @@ instance FromJSON PartialNodeConfiguration where
242243

243244
-- Node parameters, not protocol-specific
244245
pncSocketPath <- Last <$> v .:? "SocketPath"
246+
pncDatabaseFile <- Last <$> v .:? "DatabasePath"
245247
pncDiffusionMode
246248
<- Last . fmap getDiffusionMode <$> v .:? "DiffusionMode"
247249
pncNumOfDiskSnapshots
@@ -336,7 +338,7 @@ instance FromJSON PartialNodeConfiguration where
336338
, pncTraceForwardSocket = mempty
337339
, pncConfigFile = mempty
338340
, pncTopologyFile = mempty
339-
, pncDatabaseFile = mempty
341+
, pncDatabaseFile
340342
, pncProtocolFiles = mempty
341343
, pncValidateDB = mempty
342344
, pncShutdownConfig = mempty
@@ -492,7 +494,7 @@ defaultPartialNodeConfiguration :: PartialNodeConfiguration
492494
defaultPartialNodeConfiguration =
493495
PartialNodeConfiguration
494496
{ pncConfigFile = Last . Just $ ConfigYamlFilePath "configuration/cardano/mainnet-config.json"
495-
, pncDatabaseFile = Last . Just $ DbFile "mainnet/db/"
497+
, pncDatabaseFile = Last . Just $ OnePathForAllDbs "mainnet/db/"
496498
, pncLoggingSwitch = Last $ Just True
497499
, pncSocketConfig = Last . Just $ SocketConfig mempty mempty mempty mempty
498500
, pncDiffusionMode = Last $ Just InitiatorAndResponderDiffusionMode

0 commit comments

Comments
 (0)