Skip to content

Commit

Permalink
fixed pbf-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Saizan committed Oct 31, 2024
1 parent 8dbf8fb commit 75d18a9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions simulation/src/PraosProtocol/SimBlockFetch.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import Control.Tracer as Tracer (
traceWith,
)
import qualified Data.ByteString as BS
import Data.Functor ((<&>))
import Data.Map.Strict (Map)
import qualified Data.Map.Strict as Map
import Data.Set (Set)
Expand Down Expand Up @@ -84,12 +83,12 @@ traceRelayLink1 tcpprops =
nodeA :: (MonadAsync m, MonadDelay m, MonadSTM m) => PraosConfig -> Chan m (ProtocolMessage BlockFetchState) -> m ()
nodeA praosConfig chan = do
peerChainVar <- newTVarIO (blockHeader <$> bchain)
st <- newBlockFetchControllerState Genesis >>= addPeer (asReadOnly peerChainVar) <&> fst
(st, peerId) <- newBlockFetchControllerState Genesis >>= addPeer (asReadOnly peerChainVar)
concurrently_
( blockFetchController nullTracer st
)
( runBlockFetchConsumer nullTracer praosConfig chan $
initBlockFetchConsumerStateForPeerId nullTracer 1 st
initBlockFetchConsumerStateForPeerId nullTracer peerId st
)
-- Block-Fetch Producer
nodeB chan = do
Expand Down

0 comments on commit 75d18a9

Please sign in to comment.