Skip to content

Commit

Permalink
Revert "wip"
Browse files Browse the repository at this point in the history
This reverts commit 4a0f449.
  • Loading branch information
carbolymer committed Jun 18, 2024
1 parent 4a0f449 commit 84e4aeb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cardano-testnet/src/Testnet/Start/Cardano.hs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ import Testnet.Types as TR hiding (shelleyGenesis)
import Hedgehog (MonadTest)
import qualified Hedgehog as H
import qualified Hedgehog.Extras as H
import qualified Hedgehog.Extras.Stock.IO.Network.Port as H
import qualified Hedgehog.Extras.Stock.OS as OS

-- | There are certain conditions that need to be met in order to run
Expand Down Expand Up @@ -227,6 +226,8 @@ cardanoTestnet
nDReps = numDReps testnetOptions
era = cardanoNodeEra testnetOptions

portNumbers <- requestAvailablePortNumbers numPoolNodes

-- Sanity checks
testnetMinimumConfigurationRequirements testnetOptions
when (shelleyStartTime /= startTime) $ do
Expand Down Expand Up @@ -343,9 +344,6 @@ cardanoTestnet

H.evalIO $ LBS.writeFile (unFile configurationFile) config

let ip = "10.0.0.1"
portNumbers <- requestAvailablePortNumbers numPoolNodes
-- H.reserveRandomPort
-- Byron related
forM_ (zip [1..] portNumbers) $ \(i, portNumber) -> do
let iStr = printf "%03d" (i - 1)
Expand Down

0 comments on commit 84e4aeb

Please sign in to comment.