Skip to content

Commit

Permalink
pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
cardenaso11 authored and v0d1ch committed Dec 23, 2023
1 parent 2d1a8cf commit dec4741
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ result*
*.o
test-results.xml
hspec-results.md
hydra-node/golden/RunOptions.faulty.json
hydra-node/golden/RunOptions.faulty.reencoded.json

# Benchmark results
*.html
Expand Down
7 changes: 2 additions & 5 deletions hydra-cluster/src/Hydra/Cluster/Util.hs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ import System.FilePath ((<.>), (</>))
import Test.Hydra.Prelude (failure)
import Test.QuickCheck (generate)

-- import CardanoClient (buildAddress)

-- | Lookup a config file similar reading a file from disk.
-- If the env variable `HYDRA_CONFIG_DIR` is set, filenames will be
-- resolved relative to its value otherwise they will be looked up in the
Expand Down Expand Up @@ -96,7 +94,6 @@ seedInitialUTxOFromOffline targetDir utxo = do
let destinationPath = targetDir </> "utxo.json"
writeFileBS destinationPath . toStrict . Aeson.encode $ utxo

-- Aeson.throwDecodeStrict =<< readFileBS (targetDir </> "utxo.json")
pure destinationPath

buildAddress :: VerificationKey PaymentKey -> NetworkId -> Address ShelleyAddr
Expand Down Expand Up @@ -135,7 +132,7 @@ initialUtxoForActors actorToVal networkId = do
vkForActor actor <&> (,val)

chainConfigFor :: HasCallStack => Actor -> FilePath -> SocketPath -> [Actor] -> ContestationPeriod -> IO ChainConfig
chainConfigFor me targetDir nodeSocket them cp = do
chainConfigFor me targetDir nodeSocket them contestationPeriod = do
when (me `elem` them) $
failure $
show me <> " must not be in " <> show them
Expand All @@ -148,7 +145,7 @@ chainConfigFor me targetDir nodeSocket them cp = do
{ nodeSocket
, cardanoSigningKey = skTarget me
, cardanoVerificationKeys = [vkTarget himOrHer | himOrHer <- them]
, contestationPeriod = cp :: ContestationPeriod
, contestationPeriod
}
where
skTarget x = targetDir </> skName x
Expand Down
6 changes: 2 additions & 4 deletions hydra-cluster/src/HydraNode.hs
Original file line number Diff line number Diff line change
Expand Up @@ -423,11 +423,9 @@ withHydraNode' chainConfig workDir hydraNodeId hydraSKey hydraVKeys allNodeIds h
, hydraVerificationKeys
, hydraScriptsTxId
, persistenceDir = workDir </> "state-" <> show hydraNodeId
, -- , chainConfig = fromRight defaultChainConfig chainConfig
chainConfig
, chainConfig
, ledgerConfig
, -- , offlineConfig = leftToMaybe chainConfig
offlineConfig = Nothing
, offlineConfig = Nothing
}
)
{ std_out = maybe CreatePipe UseHandle mGivenStdOut
Expand Down

0 comments on commit dec4741

Please sign in to comment.