Verify signature of recovered shred before adding them to blocktree (#5811)

* Verify signature of recovered shred before adding them to blocktree

* fix failing tests, and review comments
This commit is contained in:
Pankaj Garg
2019-09-05 18:20:30 -07:00
committed by GitHub
parent 719c03d33f
commit 3d3b03a123
14 changed files with 143 additions and 142 deletions

View File

@ -1932,7 +1932,7 @@ mod tests {
shred.set_index(1);
blocktree
.insert_shreds(vec![shred])
.insert_shreds(vec![shred], None)
.expect("Expect successful ledger write");
let rv = ClusterInfo::run_window_request(
@ -2010,7 +2010,7 @@ mod tests {
let (blobs, _) = make_many_slot_entries(1, 3, 5);
blocktree
.insert_shreds(blobs)
.insert_shreds(blobs, None)
.expect("Expect successful ledger write");
// We don't have slot 4, so we don't know how to service this requeset