Integrate shreds to the replicators (#5711)

* Integrate shreds to the replicators

* fix cuda stuff

* fix cuda tests
This commit is contained in:
Pankaj Garg
2019-08-28 22:34:47 -07:00
committed by GitHub
parent 5a5a6b3840
commit 8adac30c05
6 changed files with 151 additions and 48 deletions

View File

@@ -475,6 +475,7 @@ pub mod tests {
ticks_per_slot,
Some(parent_slot),
true,
&Arc::new(Keypair::new()),
&entries,
)
.unwrap();
@@ -862,7 +863,16 @@ pub mod tests {
let blocktree =
Blocktree::open(&ledger_path).expect("Expected to successfully open database ledger");
blocktree
.write_entries_using_shreds(1, 0, 0, genesis_block.ticks_per_slot, None, true, &entries)
.write_entries_using_shreds(
1,
0,
0,
genesis_block.ticks_per_slot,
None,
true,
&Arc::new(Keypair::new()),
&entries,
)
.unwrap();
let (bank_forks, bank_forks_info, _) =
process_blocktree(&genesis_block, &blocktree, None, true, None).unwrap();