Skip to content

Commit 3937d10

Browse files
committed
cardano-testnet: remove unused enable P2P option
1 parent 486ffb0 commit 3937d10

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

cardano-testnet/src/Parsers/Cardano.hs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ pCardanoTestnetCliOptions envCli = CardanoTestnetOptions
3535
<$> pTestnetNodeOptions
3636
<*> pAnyShelleyBasedEra'
3737
<*> pMaxLovelaceSupply
38-
<*> OA.option auto
39-
( OA.long "enable-p2p"
40-
<> OA.help "Enable P2P"
41-
<> OA.metavar "BOOL"
42-
<> OA.showDefault
43-
<> OA.value (cardanoEnableP2P def)
44-
)
4538
<*> OA.option (OA.eitherReader readNodeLoggingFormat)
4639
( OA.long "nodeLoggingFormat"
4740
<> OA.help "Node logging format (json|text)"

cardano-testnet/src/Testnet/Start/Types.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ data CardanoTestnetOptions = CardanoTestnetOptions
7070
, cardanoNodeEra :: AnyShelleyBasedEra -- ^ The era to start at
7171
, cardanoMaxSupply :: Word64 -- ^ The amount of Lovelace you are starting your testnet with (forwarded to shelley genesis)
7272
-- TODO move me to GenesisOptions when https://github.com/IntersectMBO/cardano-cli/pull/874 makes it to cardano-node
73-
, cardanoEnableP2P :: Bool
7473
, cardanoNodeLoggingFormat :: NodeLoggingFormat
7574
, cardanoNumDReps :: NumDReps -- ^ The number of DReps to generate at creation
7675
, cardanoEnableNewEpochStateLogging :: Bool -- ^ if epoch state logging is enabled
@@ -112,7 +111,6 @@ instance Default CardanoTestnetOptions where
112111
{ cardanoNodes = cardanoDefaultTestnetNodeOptions
113112
, cardanoNodeEra = AnyShelleyBasedEra ShelleyBasedEraBabbage
114113
, cardanoMaxSupply = 100_000_020_000_000 -- 100 000 billions Lovelace, so 100 millions ADA. This amount should be bigger than the 'byronTotalBalance' in Testnet.Start.Byron
115-
, cardanoEnableP2P = False
116114
, cardanoNodeLoggingFormat = NodeLoggingFormatAsJson
117115
, cardanoNumDReps = 3
118116
, cardanoEnableNewEpochStateLogging = True

0 commit comments

Comments
 (0)