Skip to content

Commit

Permalink
fixup: Separate the decision loop interval for bulksync and deadline …
Browse files Browse the repository at this point in the history
…modes
  • Loading branch information
facundominguez committed Jul 26, 2024
1 parent 1607e21 commit 415d7d5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ouroboros-network/demo/chain-sync.hs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,8 @@ clientBlockFetch sockAddrs maxSlotNo = withIOManager $ \iocp -> do
(BlockFetchConfiguration {
bfcMaxConcurrencyDeadline = 2,
bfcMaxRequestsInflight = 10,
bfcDecisionLoopInterval = 0.01,
bfcDecisionLoopIntervalBulkSync = 0.04,
bfcDecisionLoopIntervalDeadline = 0.01,
bfcSalt = 0,
bfcGenesisBFConfig = GenesisBlockFetchConfiguration
{ gbfcBulkSyncGracePeriod = 10 -- seconds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ blockFetchExample1 decisionTracer clientStateTracer clientMsgTracer
(BlockFetchConfiguration {
bfcMaxConcurrencyDeadline = 2,
bfcMaxRequestsInflight = 10,
bfcDecisionLoopInterval = 0.01,
bfcDecisionLoopIntervalBulkSync = 0.04,
bfcDecisionLoopIntervalDeadline = 0.01,
bfcSalt = 0,
bfcGenesisBFConfig = GenesisBlockFetchConfiguration
{ gbfcBulkSyncGracePeriod = 10 -- seconds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ run blockGeneratorArgs limits ni na tracersExtra tracerBlockFetch =
(BlockFetchConfiguration {
bfcMaxConcurrencyDeadline = 2,
bfcMaxRequestsInflight = 10,
bfcDecisionLoopInterval = 0.01,
bfcDecisionLoopIntervalBulkSync = 0.04,
bfcDecisionLoopIntervalDeadline = 0.01,
bfcSalt = 0,
bfcGenesisBFConfig = GenesisBlockFetchConfiguration
{ gbfcBulkSyncGracePeriod = 10 -- seconds
Expand Down

0 comments on commit 415d7d5

Please sign in to comment.