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_denominatorpacket delay is obtained by sampling from a uniform distribution betweendelay_low_msanddelay_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
timeoutns
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.
SequencingMessageis the same as other network messages The kind of messageMis determined by what we requested TODO: PutFoundcontent in aBoxto 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