Skip to content

Commit f94636d

Browse files
committed
cardano-testnet | Remove redundant EnableP2P node config option
1 parent 007b1a4 commit f94636d

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

cardano-testnet/src/Testnet/Defaults.hs

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
{-# LANGUAGE LambdaCase #-}
44
{-# LANGUAGE NamedFieldPuns #-}
55
{-# LANGUAGE NumericUnderscores #-}
6+
{-# LANGUAGE OverloadedLists #-}
67
{-# LANGUAGE OverloadedStrings #-}
78
{-# LANGUAGE RankNTypes #-}
89
{-# LANGUAGE ScopedTypeVariables #-}
@@ -89,9 +90,7 @@ import Data.Scientific
8990
import Data.Text (Text)
9091
import qualified Data.Text as Text
9192
import Data.Time (UTCTime)
92-
import qualified Data.Vector as Vector
9393
import Data.Word (Word64)
94-
import GHC.Exts (IsList (..))
9594
import Lens.Micro
9695
import Numeric.Natural
9796
import System.FilePath ((</>))
@@ -182,7 +181,7 @@ defaultYamlHardforkViaConfig :: ShelleyBasedEra era -> Aeson.KeyMap Aeson.Value
182181
defaultYamlHardforkViaConfig sbe =
183182
defaultYamlConfig
184183
<> tracers
185-
<> fromList [("TraceOptions", Aeson.Object mempty)]
184+
<> [("TraceOptions", Aeson.Object mempty)]
186185
<> protocolVersions sbe
187186
<> hardforkViaConfig sbe
188187
where
@@ -332,25 +331,23 @@ defaultYamlConfig =
332331
-- See: https://github.com/input-output-hk/cardano-ledger/blob/master/eras/byron/ledger/impl/doc/network-magic.md
333332
, ("RequiresNetworkMagic", "RequiresMagic")
334333

335-
-- Enable P2P, non-P2P is gone
336-
, ("EnableP2P", Aeson.Bool True)
337334
, ("PeerSharing", Aeson.Bool False)
338335

339336
-- Logging related
340337
, ("setupScribes", setupScribes)
341338
, ("rotation", rotationObject)
342339
, ("defaultScribes", defaultScribes)
343-
, ("setupBackends", Aeson.Array $ Vector.fromList ["KatipBK"])
344-
, ("defaultBackends", Aeson.Array $ Vector.fromList ["KatipBK"])
340+
, ("setupBackends", Aeson.Array ["KatipBK"])
341+
, ("defaultBackends", Aeson.Array ["KatipBK"])
345342
, ("options", Aeson.object mempty)
346343
]
347344
where
348345
genesisPath era = Aeson.String $ Text.pack $ defaultGenesisFilepath era
349346
defaultScribes :: Aeson.Value
350347
defaultScribes =
351-
Aeson.Array $ Vector.fromList
352-
[ Aeson.Array $ Vector.fromList ["FileSK","logs/mainnet.log"]
353-
, Aeson.Array $ Vector.fromList ["StdoutSK","stdout"]
348+
Aeson.Array
349+
[ Aeson.Array ["FileSK","logs/mainnet.log"]
350+
, Aeson.Array ["StdoutSK","stdout"]
354351
]
355352
rotationObject :: Aeson.Value
356353
rotationObject =
@@ -362,7 +359,7 @@ defaultYamlConfig =
362359
]
363360
setupScribes :: Aeson.Value
364361
setupScribes =
365-
Aeson.Array $ Vector.fromList
362+
Aeson.Array
366363
[ Aeson.Object $ mconcat $ map (uncurry Aeson.singleton)
367364
[ ("scKind", "FileSK")
368365
, ("scName", "logs/node.log")

cardano-testnet/test/cardano-testnet-golden/files/golden/node_default_config.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"DijkstraGenesisFile": "dijkstra-genesis.json",
66
"EnableLogMetrics": false,
77
"EnableLogging": true,
8-
"EnableP2P": true,
98
"ExperimentalHardForksEnabled": true,
109
"ExperimentalProtocolsEnabled": true,
1110
"LastKnownBlockVersion-Alt": 0,

cardano-testnet/test/cardano-testnet-test/files/calculatePlutusScriptCost.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
"lovelaceCost": 34,
88
"scriptHash": "186e32faa80a26810392fda6d559c7ed4721a65ce1c9d4ef3e1c87b4"
99
}
10-
]
10+
]

0 commit comments

Comments
 (0)