Module hotshot_types::traits::network
source · Expand description
Network access compatibility
Contains types and traits used by HotShot
to abstract over network access
Structs§
- An asynchronous network. Packets may be dropped entirely or delayed for arbitrarily long periods probability that packet is kept =
keep_numerator
/keep_denominator
packet delay is obtained by sampling from a uniform distribution betweendelay_low_ms
anddelay_high_ms
, inclusive - A chaotic network using all the networking calls
- A request for some data that the consensus layer is asking for.
- An partially synchronous network. Behaves asynchronously until some arbitrary time bound, GST, then synchronously after GST
- ideal network
- A synchronous network. Packets may be delayed, but are guaranteed to arrive within
timeout
ns
Enums§
- When a message should be broadcast to the network.
- Changes that can occur in the network
- Errors that can occur in the network
- Centralized server specific errors
- Underlying data request
- A response for a request.
SequencingMessage
is the same as other network messages The kind of messageM
is is determined by what we requested TODO: PutFound
content in aBox
to make enum smaller - Used when broadcasting messages
- the type of transmission
Traits§
- represents a networking implmentration exposes low level API for interacting with a network intended to be implemented for libp2p, the centralized server, and memory network
- Trait that bundles what we need from a request ID
- interface describing how reliable the network is
- Describes additional functionality needed by the test network implementation
- a message
Type Aliases§
- A channel generator for types that need asynchronous execution