Skip to content

Commit

Permalink
use public API
Browse files Browse the repository at this point in the history
  • Loading branch information
crocodile-dentist committed Sep 24, 2024
1 parent 37607c5 commit f2f5a43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ library
serialise ^>=0.2,
si-timers ^>=1.5,
strict-stm ^>=1.5,
strict-mvar ^>=1.5,
text,
time,
transformers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ module Ouroboros.Consensus.NodeKernel (
) where


import qualified Control.Concurrent.Class.MonadMVar.Strict as StrictSTM
import qualified Control.Concurrent.Class.MonadSTM as LazySTM
import qualified Control.Concurrent.Class.MonadSTM.Strict as StrictSTM
import Control.DeepSeq (force)
Expand All @@ -43,7 +42,6 @@ import Data.Functor ((<&>))
import Data.Hashable (Hashable)
import Data.List.NonEmpty (NonEmpty)
import Data.Map.Strict (Map)
import qualified Data.Map.Strict as Map
import Data.Maybe (isJust, mapMaybe)
import Data.Proxy
import qualified Data.Text as Text
Expand Down Expand Up @@ -114,8 +112,8 @@ import Ouroboros.Network.TxSubmission.Inbound
(TxSubmissionMempoolWriter)
import qualified Ouroboros.Network.TxSubmission.Inbound as Inbound
import Ouroboros.Network.TxSubmission.Inbound.Registry
(SharedTxStateVar, TxChannels (..), TxChannelsVar,
decisionLogicThread, newSharedTxStateVar)
(SharedTxStateVar, TxChannelsVar,
decisionLogicThread, newSharedTxStateVar, newTxChannelsVar)
import Ouroboros.Network.TxSubmission.Mempool.Reader
(TxSubmissionMempoolReader)
import qualified Ouroboros.Network.TxSubmission.Mempool.Reader as MempoolReader
Expand Down Expand Up @@ -294,7 +292,7 @@ initNodeKernel args@NodeKernelArgs { registry, cfg, tracers
ps_POLICY_PEER_SHARE_STICKY_TIME
ps_POLICY_PEER_SHARE_MAX_PEERS

txChannelsVar <- StrictSTM.newMVar (TxChannels Map.empty)
txChannelsVar <- newTxChannelsVar
sharedTxStateVar <- newSharedTxStateVar

case gnkaGetLoEFragment genesisArgs of
Expand Down

0 comments on commit f2f5a43

Please sign in to comment.