Function aleph_bft::run_session [−][src]
pub async fn run_session<H: Hasher, D: Data, DP: DataIO<D>, N: Network<H, D, MK::Signature, MK::PartialMultisignature> + 'static, SH: SpawnHandle, MK: MultiKeychain>(
config: Config,
network: N,
data_io: DP,
keybox: MK,
spawn_handle: SH,
exit: Receiver<()>
)
Expand description
Starts the consensus algorithm as an async task. It stops establishing consensus for new data items after
reaching the threshold specified in Config::max_round
or upon receiving a stop signal from exit
.
For a detailed description of the consensus implemented by run_session
see
docs for devs
or the original paper.