Skip to content

Commit

Permalink
cardano-testnet: small code simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Feb 12, 2025
1 parent 1f7c3d8 commit 18c0d3e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions cardano-testnet/src/Testnet/Runtime.hs
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,10 @@ startNode tp node ipv4 port _testnetMagic nodeCmd = GHC.withFrozenCallStack $ do

nodeProcess
<- newExceptT . fmap (first ExecutableRelatedFailure) . try
$ procNode $ mconcat
[ nodeCmd
, [ "--socket-path", H.sprocketArgumentName sprocket
, "--port", show port
, "--host-addr", showIpv4Address ipv4
]
$ procNode $ nodeCmd ++
[ "--socket-path", H.sprocketArgumentName sprocket
, "--port", show port
, "--host-addr", showIpv4Address ipv4
]

-- The port number if it is obtained using 'H.randomPort', it is firstly bound to and then closed. The closing
Expand Down

0 comments on commit 18c0d3e

Please sign in to comment.