Skip to content

Commit

Permalink
Reapply "wip"
Browse files Browse the repository at this point in the history
This reverts commit 84e4aeb.
  • Loading branch information
carbolymer committed Jun 19, 2024
1 parent 19708b4 commit 46653f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cardano-testnet/src/Testnet/Start/Cardano.hs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ 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 @@ -226,8 +227,6 @@ cardanoTestnet
nDReps = numDReps testnetOptions
era = cardanoNodeEra testnetOptions

portNumbers <- requestAvailablePortNumbers numPoolNodes

-- Sanity checks
testnetMinimumConfigurationRequirements testnetOptions
when (shelleyStartTime /= startTime) $ do
Expand Down Expand Up @@ -344,6 +343,9 @@ 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 46653f6

Please sign in to comment.