Added check in broadcast stage to exit after transmitting last blob before leader rotation. Also added tests

This commit is contained in:
Carl
2018-09-12 13:59:19 -07:00
committed by Greg Fitzgerald
parent f28ba3937b
commit 98b47d2540
5 changed files with 50 additions and 45 deletions

View File

@@ -124,5 +124,18 @@ fn main() -> () {
}
}
fullnode.join().expect("to never happen");
/*loop {
match fullnode.node_role {
NodeRole::Leader(leader_services) => {
// TODO: return an exit code that signals we should do a role switch
leader_services.join();
//fullnode.start_tvu();
},
NodeRole::Validator(validator_services) => {
validator_services.join();
}
}
}*/
let _ = fullnode.join();
}