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

@@ -415,7 +415,7 @@ mod test {
let num_entries = 10;
let shared_blobs = make_tiny_test_entries(num_entries).to_shared_blobs();
index_blobs(&shared_blobs, &Keypair::new().pubkey(), &mut 0, slot);
index_blobs(&shared_blobs, &Keypair::new().pubkey(), 0, slot, 0);
let blob_locks: Vec<_> = shared_blobs.iter().map(|b| b.read().unwrap()).collect();
let blobs: Vec<&Blob> = blob_locks.iter().map(|b| &**b).collect();
@@ -505,7 +505,7 @@ mod test {
let original_entries = make_tiny_test_entries(num_entries);
let shared_blobs = original_entries.clone().to_shared_blobs();
index_blobs(&shared_blobs, &Keypair::new().pubkey(), &mut 0, 0);
index_blobs(&shared_blobs, &Keypair::new().pubkey(), 0, 0, 0);
for blob in shared_blobs.iter().rev() {
process_blob(&blocktree, blob).expect("Expect successful processing of blob");