Skip to content

Commit 9932726

Browse files
authored
Merge pull request #6154 from IntersectMBO/smelc/cardano-testnet-remove-unused-option
cardano-testnet: remove unused enable P2P option
2 parents 486ffb0 + cecdf60 commit 9932726

File tree

4 files changed

+0
-12
lines changed

4 files changed

+0
-12
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

cardano-testnet/test/cardano-testnet-golden/files/golden/help.cli

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Usage: cardano-testnet cardano [--num-pool-nodes COUNT | --node-config FILEPATH]
99
| --conway-era
1010
]
1111
[--max-lovelace-supply WORD64]
12-
[--enable-p2p BOOL]
1312
[--nodeLoggingFormat LOGGING_FORMAT]
1413
[--num-dreps NUMBER]
1514
[--enable-new-epoch-state-logging]

cardano-testnet/test/cardano-testnet-golden/files/golden/help/cardano.cli

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Usage: cardano-testnet cardano [--num-pool-nodes COUNT | --node-config FILEPATH]
77
| --conway-era
88
]
99
[--max-lovelace-supply WORD64]
10-
[--enable-p2p BOOL]
1110
[--nodeLoggingFormat LOGGING_FORMAT]
1211
[--num-dreps NUMBER]
1312
[--enable-new-epoch-state-logging]
@@ -42,7 +41,6 @@ Available options:
4241
Max lovelace supply that your testnet starts with.
4342
Ignored if a custom Shelley genesis file is passed.
4443
(default: 100000020000000)
45-
--enable-p2p BOOL Enable P2P (default: False)
4644
--nodeLoggingFormat LOGGING_FORMAT
4745
Node logging format (json|text)
4846
(default: NodeLoggingFormatAsJson)

0 commit comments

Comments
 (0)