sn_consensus 3.5.2

Safe Network Membership: Enables nodes to dynamically join and leave a section
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

#[derive(Error, Debug)]
pub enum Error {
    #[error("encoding/decoding error {0:?}")]
    Encoding(#[from] bincode::Error),
    #[error("blsttc Error {0}")]
    Blsttc(#[from] blsttc::error::Error),
    #[error("invalid message {0}")]
    InvalidMessage(String),
    #[error("{0}")]
    Generic(String),
}

pub type Result<T> = std::result::Result<T, Error>;