Crate sn_dysfunction
source · [−]Expand description
Dysfunctional “Node” detection for the SAFE Network. All dysfunction detection should route through this for proper weighting in relation to other possible sources of dysfunction
Structs
Dysfunctional node tracking. Allows various potential issues to be tracked and weighted, with unresposive or suspect nodes being noted on request, against which action can then be taken.
Enums
Severity of dysfunction… Is it not yet fully dysfunctional? But out of line with neighbours?
Then it’s Suspicious, or, if it’s gone too far we can check if it’s Dysfunctional.
These can be passed in to the check_for_maliciousness
function.
Node error variants.
Represents the different type of issues that can be recorded by the Dysfunction Detection system.