File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -77,11 +77,15 @@ flattenQueryResult = \case
7777connectionInfo :: NodeInfo -> C. LocalNodeConnectInfo C. CardanoMode
7878connectionInfo (NodeInfo netId socket) =
7979 C. LocalNodeConnectInfo
80- ( C. CardanoModeParams
81- (C. EpochSlots 21600 ) -- TODO: this probably should be settable somehow?
82- )
80+ (C. CardanoModeParams epochSlots)
8381 netId
8482 socket
83+ where
84+ -- This parameter needed only for the Byron era. Since the Byron
85+ -- era is over and the parameter has never changed it is ok to
86+ -- hardcode this. See comment on `Cardano.Api.ConsensusModeParams` in
87+ -- cardano-node.
88+ epochSlots = C. EpochSlots 21600
8589
8690toQueryError :: Show e => e -> NodeQueryError
8791toQueryError = NodeQueryError . pack . show
You can’t perform that action at this time.
0 commit comments