mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 20:21:03 +00:00
Consensus message buffering and more (#114)
* CLI options and keystore integration * Replace multiqueue with future::mpsc * BFT gossip * Revert to app_dirs * generate_from_seed commented * Refactor event loop * Start consensus by timer * Message buffering * Minor fixes * Work around duty-roster issue. * some more minor fixes * fix compilation * more consistent formatting * make bft input stream never conclude * Minor fixes * add timestamp module to executive * more cleanups and logging * Fixed message propagation
This commit is contained in:
committed by
Gav Wood
parent
633b9f4c0b
commit
b3dd4e74fd
@@ -22,9 +22,16 @@ extern crate polkadot_cli as cli;
|
||||
|
||||
#[macro_use]
|
||||
extern crate error_chain;
|
||||
extern crate ctrlc;
|
||||
|
||||
use std::sync::mpsc;
|
||||
|
||||
quick_main!(run);
|
||||
|
||||
fn run() -> cli::error::Result<()> {
|
||||
cli::run(::std::env::args())
|
||||
let (exit_send, exit_receive) = mpsc::channel();
|
||||
ctrlc::CtrlC::set_handler(move || {
|
||||
exit_send.send(()).expect("Error sending exit notification");
|
||||
});
|
||||
cli::run(::std::env::args(), exit_receive)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user