cardano-diffusion:protocols
Safe HaskellNone
LanguageHaskell2010

Cardano.Network.Protocol.ChainSync.Codec.TimeLimits

Synopsis
  • timeLimitsChainSync :: ChainSyncIdleTimeout -> PeerTrustable -> ProtocolTimeLimitsWithRnd (ChainSync header point tip)

Documentation

timeLimitsChainSync Source #

Arguments

:: ChainSyncIdleTimeout

idle timeout, the default value defaultChainSyncIdleTimeout.

-> PeerTrustable 
-> ProtocolTimeLimitsWithRnd (ChainSync header point tip) 

Time Limits

Trustable peerChainSync Statetimeout (s)
StIdlecorresponds to ChainSyncIdleTimeout
StNext StCanAwaitshortWait
IsNotTrustable StNext StMustReply randomly picked using uniform distribution from the range (minChainSyncTimeout, maxChainSyncTimeout), which corresponds to a chance of an empty streak of slots between `0.0001%` and `1%` probability.
IsTrustableStNext StMustReplywaitForever (i.e. never times out)
StIntersectshortWait