parsec 0.7.3

Implementation of Protocol for Asynchronous, Reliable, Secure and Efficient Consensus
Documentation
// Copyright 2018 MaidSafe.net limited.
//
// This SAFE Network Software is licensed to you under The General Public License (GPL), version 3.
// Unless required by applicable law or agreed to in writing, the SAFE Network Software distributed
// under the GPL Licence is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. Please review the Licences for the specific language governing
// permissions and limitations relating to use of the SAFE Network Software.

#[macro_use]
mod macros;

/// This is used to read a dumped dot file and rebuild the event graph and associated info.
#[cfg(any(all(test, feature = "mock"), feature = "testing"))]
mod dot_parser;
mod environment;
mod misc;
mod network;
mod peer;
mod peer_statuses;
#[cfg(feature = "testing")]
pub mod proptest;
mod pseudo_random;
#[cfg(any(all(test, feature = "mock"), feature = "testing"))]
mod record;
mod schedule;

#[cfg(all(test, feature = "mock"))]
pub(crate) use self::dot_parser::parse_test_dot_file;
#[cfg(all(test, feature = "mock"))]
pub(crate) use self::dot_parser::ParsedContents;
#[cfg(any(all(test, feature = "mock"), feature = "testing"))]
pub use self::record::Record;
pub use self::{
    environment::Environment,
    misc::TestIterator,
    network::{ConsensusError, Network},
    peer::{NetworkView, Peer, PeerStatus},
    peer_statuses::PeerStatuses,
    pseudo_random::{new_common_rng, new_rng, thread_rng, ReplayRng, RngChoice, RngDebug},
    schedule::*,
};

type Observation = super::observation::Observation<super::mock::Transaction, super::mock::PeerId>;