Skip to content

Commit 176f99e

Browse files
authored
Merge pull request #5910 from IntersectMBO/jordan/revert-non-failure-if-conway-genesis-missing
Cardano-node 9.1.0 release
2 parents ac76baa + ad7286d commit 176f99e

File tree

12 files changed

+324
-22
lines changed

12 files changed

+324
-22
lines changed

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

Lines changed: 1 addition & 1 deletion
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.0
47+
, cardano-node ^>= 9.1
4848
, cardano-prelude
4949
, containers
5050
, contra-tracer

cardano-node/cardano-node.cabal

Lines changed: 1 addition & 1 deletion
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.0.0
4+
version: 9.1.0
55
synopsis: The cardano full node
66
description: The cardano full node.
77
category: Cardano,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ instance FromJSON PartialNodeConfiguration where
427427
}
428428

429429
parseConwayProtocol v = do
430-
npcConwayGenesisFile <- v .:? "ConwayGenesisFile"
430+
npcConwayGenesisFile <- v .: "ConwayGenesisFile"
431431
npcConwayGenesisFileHash <- v .:? "ConwayGenesisHash"
432432
pure NodeConwayProtocolConfiguration {
433433
npcConwayGenesisFile

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

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ import qualified Ouroboros.Consensus.Shelley.Node.Praos as Praos
4040

4141
import Prelude
4242

43-
import Data.Maybe
44-
4543
------------------------------------------------------------------------------
4644
-- Real Cardano protocol
4745
--
@@ -137,7 +135,7 @@ mkSomeConsensusProtocolCardano NodeByronProtocolConfiguration {
137135

138136
(conwayGenesis, _conwayGenesisHash) <-
139137
firstExceptT CardanoProtocolInstantiationConwayGenesisReadError $
140-
Conway.readGenesisMaybe npcConwayGenesisFile
138+
Conway.readGenesis npcConwayGenesisFile
141139
npcConwayGenesisFileHash
142140

143141
shelleyLeaderCredentials <-
@@ -235,21 +233,18 @@ mkSomeConsensusProtocolCardano NodeByronProtocolConfiguration {
235233
-- version. It is the protocol version that this node will declare
236234
-- that it understands during the Babbage era. That is, it is the
237235
-- version of protocol /after/ Babbage, i.e. Conway.
238-
Praos.babbageProtVer = ProtVer (natVersion @9) 0,
236+
Praos.babbageProtVer = ProtVer (natVersion @9) 1,
239237
Praos.babbageMaxTxCapacityOverrides =
240238
TxLimits.mkOverrides TxLimits.noOverridesMeasure
241239
}
242240
, paramsConway =
243241
Praos.ProtocolParamsConway {
244-
-- If Conway is not enabled, this is the Babbage protocol version.
245-
--
246-
-- If Conway is enabled, this is the Conway protocol version.
242+
-- ProtVer 9 corresponds to the Conway bootstrap era.
243+
-- ProtVer 10 corresponds to the Conway post bootstrap era.
247244
Praos.conwayProtVer =
248-
if isNothing npcConwayGenesisFile
249-
then ProtVer (natVersion @8) 0
250-
else if npcExperimentalHardForksEnabled
251-
then ProtVer (natVersion @10) 0
252-
else ProtVer (natVersion @9) 0,
245+
if npcExperimentalHardForksEnabled
246+
then ProtVer (natVersion @10) 0
247+
else ProtVer (natVersion @9) 1,
253248
Praos.conwayMaxTxCapacityOverrides =
254249
TxLimits.mkOverrides TxLimits.noOverridesMeasure
255250
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ data NodeAlonzoProtocolConfiguration =
154154

155155
data NodeConwayProtocolConfiguration =
156156
NodeConwayProtocolConfiguration {
157-
npcConwayGenesisFile :: !(Maybe GenesisFile)
157+
npcConwayGenesisFile :: !GenesisFile
158158
-- ^ If no conway genesis file is provided, we want
159159
-- to enforce a maximum protocol version of 8 to avoid
160160
-- a permanent hard fork.

cardano-node/test/Test/Cardano/Node/POM.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ testNodeAlonzoProtocolConfiguration =
7575
testNodeConwayProtocolConfiguration :: NodeConwayProtocolConfiguration
7676
testNodeConwayProtocolConfiguration =
7777
NodeConwayProtocolConfiguration
78-
{ npcConwayGenesisFile = Just $ GenesisFile "dummmy-genesis-file"
78+
{ npcConwayGenesisFile = GenesisFile "dummmy-genesis-file"
7979
, npcConwayGenesisFileHash = Nothing
8080
}
8181

configuration/cardano/mainnet-config.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"AlonzoGenesisHash": "7e94a15f55d1e82d10f09203fa1d40f8eede58fd8066542cf6566008068ed874",
44
"ByronGenesisFile": "mainnet-byron-genesis.json",
55
"ByronGenesisHash": "5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb",
6+
"ConwayGenesisFile": "mainnet-conway-genesis.json",
7+
"ConwayGenesisHash": "15a199f895e461ec0ffc6dd4e4028af28a492ab4e806d39cb674c88f7643ef62",
68
"EnableP2P": true,
79
"LastKnownBlockVersion-Alt": 0,
810
"LastKnownBlockVersion-Major": 3,

configuration/cardano/mainnet-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ AlonzoGenesisFile: mainnet-alonzo-genesis.json
77
AlonzoGenesisHash: 7e94a15f55d1e82d10f09203fa1d40f8eede58fd8066542cf6566008068ed874
88
ByronGenesisFile: mainnet-byron-genesis.json
99
ByronGenesisHash: 5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb
10+
ConwayGenesisFile: mainnet-conway-genesis.json
11+
ConwayGenesisHash: 15a199f895e461ec0ffc6dd4e4028af28a492ab4e806d39cb674c88f7643ef62
1012
ShelleyGenesisFile: mainnet-shelley-genesis.json
1113
ShelleyGenesisHash: 1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81
1214

0 commit comments

Comments
 (0)