groom broadcast (#3170)

This commit is contained in:
Rob Walker
2019-03-07 09:43:42 -08:00
committed by GitHub
parent 94882418ab
commit 9e9c0785e7
6 changed files with 29 additions and 27 deletions

View File

@@ -463,16 +463,17 @@ impl Blob {
}
}
pub fn index_blobs(blobs: &[SharedBlob], id: &Pubkey, blob_index: &mut u64, slot: u64) {
pub fn index_blobs(blobs: &[SharedBlob], id: &Pubkey, mut blob_index: u64, slot: u64, parent: u64) {
// enumerate all the blobs, those are the indices
for blob in blobs.iter() {
let mut blob = blob.write().unwrap();
blob.set_index(*blob_index);
blob.set_index(blob_index);
blob.set_slot(slot);
blob.set_parent(parent);
blob.set_id(id);
blob.forward(true);
*blob_index += 1;
blob_index += 1;
}
}