Added check in broadcast stage to exit after transmitting last blob before leader rotation. Also added tests
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user