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 8, 2024
1 parent 98dbae0 commit 8100341
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 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-05T13:36:27Z
, 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
@@ -0,0 +1,3 @@
### Non-Breaking

- Upgraded to `ouroboros-network-0.16`
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ library
io-classes ^>=1.4.1,
mtl,
ouroboros-consensus ^>=0.17,
ouroboros-network ^>=0.14,
ouroboros-network ^>=0.16,
ouroboros-network-api ^>=0.7,
ouroboros-network-framework ^>=0.12,
ouroboros-network-framework ^>=0.13,
ouroboros-network-protocols ^>=0.8,
random,
safe-wild-cards ^>=1.0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,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 @@ -819,7 +822,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 8100341

Please sign in to comment.