Skip to content

Commit

Permalink
GracePeriod rename
Browse files Browse the repository at this point in the history
  • Loading branch information
facundominguez authored and amesgen committed Sep 18, 2024
1 parent 8acf57f commit 8bf522b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ouroboros-network/demo/chain-sync.hs
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ clientBlockFetch sockAddrs maxSlotNo = withIOManager $ \iocp -> do
bfcDecisionLoopIntervalPraos = 0.01,
bfcSalt = 0,
bfcGenesisBFConfig = GenesisBlockFetchConfiguration
{ gbfcGenesisGracePeriod = 10 -- seconds
{ gbfcGracePeriod = 10 -- seconds
}
})
>> return ()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ blockFetchExample0 fetchMode decisionTracer clientStateTracer clientMsgTracer
bfcDecisionLoopIntervalPraos = 0.01,
bfcSalt = 0,
bfcGenesisBFConfig = GenesisBlockFetchConfiguration
{ gbfcGenesisGracePeriod = 10 -- seconds
{ gbfcGracePeriod = 10 -- seconds
}
})
>> return ()
Expand Down Expand Up @@ -258,7 +258,7 @@ blockFetchExample1 fetchMode decisionTracer clientStateTracer clientMsgTracer
bfcDecisionLoopIntervalPraos = 0.01,
bfcSalt = 0,
bfcGenesisBFConfig = GenesisBlockFetchConfiguration
{ gbfcGenesisGracePeriod = 10 -- seconds
{ gbfcGracePeriod = 10 -- seconds
}
})
>> return ()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ run blockGeneratorArgs limits ni na tracersExtra tracerBlockFetch =
bfcDecisionLoopIntervalPraos = 0.01,
bfcSalt = 0,
bfcGenesisBFConfig = GenesisBlockFetchConfiguration
{ gbfcGenesisGracePeriod = 10 -- seconds
{ gbfcGracePeriod = 10 -- seconds
}
})

Expand Down
6 changes: 3 additions & 3 deletions ouroboros-network/src/Ouroboros/Network/BlockFetch.hs
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ data BlockFetchConfiguration =
-- | BlockFetch configuration parameters specific to Genesis.
data GenesisBlockFetchConfiguration =
GenesisBlockFetchConfiguration
{ -- | Grace period when starting to talk to a peer in bulk sync mode
{ -- | Grace period when starting to talk to a peer in genesis mode
-- during which it is fine if the chain selection gets starved.
gbfcGenesisGracePeriod :: !DiffTime
gbfcGracePeriod :: !DiffTime
}
deriving (Eq, Generic, Show)

Expand Down Expand Up @@ -221,7 +221,7 @@ blockFetchLogic decisionTracer clientStateTracer
decisionLoopIntervalGenesis = bfcDecisionLoopIntervalGenesis,
decisionLoopIntervalPraos = bfcDecisionLoopIntervalPraos,
peerSalt = bfcSalt,
bulkSyncGracePeriod = gbfcGenesisGracePeriod bfcGenesisBFConfig,
bulkSyncGracePeriod = gbfcGracePeriod bfcGenesisBFConfig,

plausibleCandidateChain,
compareCandidateChains,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ defaultBlockFetchConfiguration bfcSalt =
bfcDecisionLoopIntervalGenesis = 0.04, -- 40ms
bfcDecisionLoopIntervalPraos = 0.01, -- 10ms
bfcGenesisBFConfig = GenesisBlockFetchConfiguration
{ gbfcGenesisGracePeriod = 10 }, -- seconds
{ gbfcGracePeriod = 10 }, -- seconds
bfcSalt }

defaultChainSyncTimeout :: IO ChainSyncTimeout
Expand Down

0 comments on commit 8bf522b

Please sign in to comment.