Skip to content

Commit

Permalink
Updated ouroboros-consensus-diffusion to ouroboros-network-0.16.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed May 7, 2024
1 parent 44d7f30 commit 3a3a92d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ index-state:
-- Bump this if you need newer packages from Hackage
, hackage.haskell.org 2024-03-26T06:28:59Z
-- Bump this if you need newer packages from CHaP
, cardano-haskell-packages 2024-04-04T19:09:56Z
, cardano-haskell-packages 2024-05-07T20:35:20Z

packages:
ouroboros-consensus
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -581,12 +581,12 @@ runWith RunNodeArgs{..} encAddrNtN decAddrNtN LowLevelRunNodeArgs{..} =
( apps
, Diffusion.P2PApplications
P2P.ApplicationsExtra {
P2P.daRethrowPolicy = consensusRethrowPolicy (Proxy @blk),
P2P.daReturnPolicy = returnPolicy,
P2P.daLocalRethrowPolicy = localRethrowPolicy,
P2P.daPeerMetrics = peerMetrics,
P2P.daBlockFetchMode = getFetchMode kernel,
P2P.daPeerSharingRegistry = getPeerSharingRegistry kernel
P2P.daRethrowPolicy = consensusRethrowPolicy (Proxy @blk),
P2P.daReturnPolicy = returnPolicy,
P2P.daLocalRethrowPolicy = localRethrowPolicy,
P2P.daPeerMetrics = peerMetrics,
P2P.daBlockFetchMode = getFetchMode kernel,
P2P.daPeerSharingRegistry = getPeerSharingRegistry kernel
}
)
DisabledP2PMode ->
Expand Down Expand Up @@ -632,7 +632,10 @@ runWith RunNodeArgs{..} encAddrNtN decAddrNtN LowLevelRunNodeArgs{..} =
lpGetLatestSlot = getImmTipSlot kernel,
lpGetLedgerPeers = fromMaybe [] <$> getPeersFromCurrentLedger kernel (const True),
lpGetLedgerStateJudgement = getLedgerStateJudgement kernel
}
},
-- TODO: consensus can use this callback to store information if the
-- node is connected to peers other than local roots.
Diffusion.daUpdateOutboundConnectionsState = \_ -> return ()
}

localRethrowPolicy :: RethrowPolicy
Expand Down Expand Up @@ -859,7 +862,9 @@ stdChainSyncTimeout = do
-- enters the must reply state. A static per connection timeout
-- leads to selection preassure for connections with a large
-- timeout, see #4244.
mustReplyTimeout <- Just <$> realToFrac <$> randomRIO (135,269 :: Double)
mustReplyTimeout <- Just <$> realToFrac <$> randomRIO ( realToFrac Diffusion.minChainSyncTimeout
, realToFrac Diffusion.maxChainSyncTimeout :: Double
)
return NTN.ChainSyncTimeout
{ canAwaitTimeout = shortWait
, intersectTimeout = shortWait
Expand Down

0 comments on commit 3a3a92d

Please sign in to comment.