pub fn new(netinfo: Arc<NetworkInfo<N>>, session_id: S) -> Result<Self> {
        Ok(BinaryAgreement {
            netinfo: netinfo.clone(),
            session_id,
            epoch: 0,
            max_future_epochs: 1000,
            sbv_broadcast: SbvBroadcast::new(netinfo),
            received_conf: BTreeMap::new(),
            received_term: BoolMultimap::default(),
            estimated: None,
            decision: None,
            incoming_queue: BTreeMap::new(),
            conf_values: None,
            coin_state: CoinState::Decided(true),
        })
    }
/// Creates a new `BinaryAgreement` instance with the given session identifier, to prevent
/// replaying messages in other instances.
Creates a new `BinaryAgreement` instance with the given session identifier, to prevent
replaying messages in other instances.
Creates a new ` BinaryAgreement ` instance with the given session identifier to prevent replaying messages in other instances .
pub fn new(netinfo: Arc<NetworkInfo<N>>, session_id: S) -> Result<Self> {
        Ok(BinaryAgreement {
            netinfo: netinfo.clone(),
            session_id,
            epoch: 0,
            max_future_epochs: 1000,
            sbv_broadcast: SbvBroadcast::new(netinfo),
            received_conf: BTreeMap::new(),
            received_term: BoolMultimap::default(),
            estimated: None,
            decision: None,
            incoming_queue: BTreeMap::new(),
            conf_values: None,
            coin_state: CoinState::Decided(true),
        })
    }
pub fn new ( netinfo : Arc < NetworkInfo < N > > , session_id : S ) -> Result < Self > { Ok ( BinaryAgreement { netinfo : netinfo . clone ( ) , session_id , epoch : 0 , max_future_epochs : 1000 , sbv_broadcast : SbvBroadcast :: new ( netinfo ) , received_conf : BTreeMap :: new ( ) , received_term : BoolMultimap :: default ( ) , estimated : None , decision : None , incoming_queue : BTreeMap :: new ( ) , conf_values : None , coin_state : CoinState :: Decided ( true ) , } ) }
Creates a new `BinaryAgreement` instance with the given session identifier, to prevent
replaying messages in other instances.
Creates a new ` BinaryAgreement ` instance with the given session identifier to prevent replaying messages in other instances .
netinfo
Arc<NetworkInfo<N>>
session_id
S
netinfo
Arc<NetworkInfo<N>>
session_id
S