Skip to content

Commit

Permalink
revert back to old port: see #1218 for macOS port bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cardenaso11 authored and v0d1ch committed Dec 23, 2023
1 parent dec4741 commit d5b781a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions hydra-cluster/src/HydraNode.hs
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,7 @@ withOfflineHydraNode' offlineConfig workDir hydraNodeId hydraSKey mGivenStdOut a
{ verbosity = Verbose "HydraNode"
, nodeId = NodeId $ show hydraNodeId
, host = "127.0.0.1"
, -- NOTE(Elaine): port 5000 is used on recent versions of macos
port = fromIntegral $ 5_100 + hydraNodeId
, port = fromIntegral $ 5_000 + hydraNodeId
, peers
, apiHost = "127.0.0.1"
, apiPort = fromIntegral $ 4_000 + hydraNodeId
Expand Down Expand Up @@ -414,7 +413,7 @@ withHydraNode' chainConfig workDir hydraNodeId hydraSKey hydraVKeys allNodeIds h
{ verbosity = Verbose "HydraNode"
, nodeId = NodeId $ show hydraNodeId
, host = "127.0.0.1"
, port = fromIntegral $ 5_100 + hydraNodeId
, port = fromIntegral $ 5_000 + hydraNodeId
, peers
, apiHost = "127.0.0.1"
, apiPort = fromIntegral $ 4_000 + hydraNodeId
Expand All @@ -440,7 +439,7 @@ withHydraNode' chainConfig workDir hydraNodeId hydraSKey hydraVKeys allNodeIds h
peers =
[ Host
{ Network.hostname = "127.0.0.1"
, Network.port = fromIntegral $ 5_100 + i
, Network.port = fromIntegral $ 5_000 + i
}
| i <- allNodeIds
, i /= hydraNodeId
Expand Down

0 comments on commit d5b781a

Please sign in to comment.