File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,11 @@ module BotInterface.Setup (
77 txsDir ,
88) where
99
10+ import Cardano.Launcher.Node
1011import Data.Aeson (encodeFile )
11- import LocalCluster.Types (ClusterEnv (supportDir ))
12+ import LocalCluster.Types (ClusterEnv (supportDir ), nodeSocket )
1213import System.Directory (createDirectoryIfMissing , doesDirectoryExist )
14+ import System.Environment (setEnv )
1315import System.FilePath ((</>) )
1416import Tools.CardanoApi (queryProtocolParams )
1517
@@ -30,7 +32,10 @@ runSetup :: ClusterEnv -> IO ()
3032runSetup cEnv = do
3133 createRequiredDirs
3234 saveProtocolParams
35+ setSocketPathEnv
3336 where
37+ setSocketPathEnv =
38+ setEnv " CARDANO_NODE_SOCKET_PATH" (nodeSocketFile $ nodeSocket cEnv)
3439 createRequiredDirs =
3540 mapM_
3641 (createDirectoryIfMissing True . ($ cEnv))
You can’t perform that action at this time.
0 commit comments