Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
PLT-381 Fix the value of epochSlots and add a comment (#509)
Browse files Browse the repository at this point in the history
* Fix the value of epochSlots and add a comment

* Reference to comment on cardano-node
  • Loading branch information
andreabedini authored Jun 13, 2022
1 parent ea10bbf commit 6a6f8c4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions plutus-streaming/src/Plutus/Streaming.hs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ withChainSyncEventStream socketPath networkId point consumer = do
localNodeSocketPath = socketPath
}

-- FIXME this comes from the config file but Cardano.Api does not expose readNetworkConfig!
epochSlots = EpochSlots 40
-- This a parameter needed only for the Byron era. Since the Byron
-- era is over and the parameter has never changed it is ok to
-- hardcode this. See comment on `Cardano.Api.ConsensusModeParams` in
-- cardano-node.
epochSlots = EpochSlots 21600

clientThread = do
connectToLocalNode connectInfo localNodeClientProtocols
Expand Down

0 comments on commit 6a6f8c4

Please sign in to comment.