Change range of leader scheduler to match current broadcasts (#1920)

This commit is contained in:
carllin
2018-12-03 00:10:43 -08:00
committed by GitHub
parent 1fbbf13ec9
commit 4ae58cc854
4 changed files with 85 additions and 36 deletions

View File

@@ -280,6 +280,9 @@ pub fn process_blob(
let slot = blob.read().unwrap().slot()?;
let leader = leader_scheduler.get_leader_for_slot(slot);
// TODO: Once the original leader signature is added to the blob, make sure that
// the blob was originally generated by the expected leader for this slot
if leader.is_none() {
return Ok(());
}