Skip to content

Commit

Permalink
cardano-testnet: remove unused P2P option
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Sep 3, 2024
1 parent 8d3be17 commit a3de482
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions cardano-testnet/src/Parsers/Cardano.hs
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,6 @@ optsTestnet envCli = CardanoTestnetOptions
<> OA.value (cardanoActiveSlotsCoeff cardanoDefaultTestnetOptions)
)
<*> pMaxLovelaceSupply
<*> OA.option auto
( OA.long "enable-p2p"
<> OA.help "Enable P2P"
<> OA.metavar "BOOL"
<> OA.showDefault
<> OA.value (cardanoEnableP2P cardanoDefaultTestnetOptions)
)
<*> OA.option (OA.eitherReader readNodeLoggingFormat)
( OA.long "nodeLoggingFormat"
<> OA.help "Node logging format (json|text)"
Expand Down
2 changes: 0 additions & 2 deletions cardano-testnet/src/Testnet/Start/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ data CardanoTestnetOptions = CardanoTestnetOptions
, cardanoTestnetMagic :: Int
, cardanoActiveSlotsCoeff :: Double
, cardanoMaxSupply :: Word64 -- ^ The amount of Lovelace you are starting your testnet with (forwarded to shelley genesis)
, cardanoEnableP2P :: Bool
, cardanoNodeLoggingFormat :: NodeLoggingFormat
, cardanoNumDReps :: Int -- ^ The number of DReps to generate at creation
, cardanoEnableNewEpochStateLogging :: Bool -- ^ if epoch state logging is enabled
Expand All @@ -60,7 +59,6 @@ cardanoDefaultTestnetOptions = CardanoTestnetOptions
, cardanoTestnetMagic = 42
, cardanoActiveSlotsCoeff = 0.05
, 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
, cardanoEnableP2P = False
, cardanoNodeLoggingFormat = NodeLoggingFormatAsJson
, cardanoNumDReps = 3
, cardanoEnableNewEpochStateLogging = True
Expand Down

0 comments on commit a3de482

Please sign in to comment.