Crate sn_interface

Source
Expand description

SAFE network data types.

Re-exports§

pub use network_knowledge::elder_count;
pub use network_knowledge::SectionAuthorityProvider;

Modules§

dbcs
messaging
The Safe Network messaging interface.
network_knowledge
op_cost
statemap
Instrumentation for statemaps: https://github.com/TritonDataCenter/statemap
types
SAFE network data types.

Structs§

LogFormatter
Tracing log formatter setup for easier span viewing

Functions§

data_copy_count
Get the expected chunk copy count for our network. Defaults to DEFAULT_DATA_COPY_COUNT, but can be overridden by the env var SN_DATA_COPY_COUNT.
max_num_faulty_elders
Max number of faulty Elders is assumed to be less than 1/3. So it’s no more than 2 with 7 Elders.