Skip to content

Commit

Permalink
wip Change chainSync to use Read.ChainTip
Browse files Browse the repository at this point in the history
  • Loading branch information
HeinrichApfelmus committed Apr 18, 2024
1 parent c76ab09 commit 33dc2be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/network-layer/src/Cardano/Wallet/Network.hs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ import qualified Internal.Cardano.Write.Tx as Write
data NetworkLayer m block = NetworkLayer
{ chainSync
:: Tracer IO ChainFollowLog
-> ChainFollower m Read.ChainPoint BlockHeader (NonEmpty block)
-> ChainFollower m Read.ChainPoint Read.ChainTip (NonEmpty block)
-> m ()
-- ^ Connect to the node and run the ChainSync protocol.
-- The callbacks provided in the 'ChainFollower' argument
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -481,15 +481,14 @@ withNodeNetworkLayerBase
withStats $ \trChainSyncLog -> do
let mapB = getBlockHeader getGenesisBlockHash
mapP = fromOuroborosPoint
let blockHeader = fromTip' gp
let client =
mkWalletClient
(mapChainSyncLog mapB mapP >$< trChainSyncLog)
pipeliningStrategy
(mapChainFollower
toOuroborosPoint
mapP
blockHeader
fromOuroborosTip
id
follower
)
Expand Down

0 comments on commit 33dc2be

Please sign in to comment.