Fix roots overrunning broadcast (#6884)

* Add trusted pathway for insert_shreds to avoid checks
This commit is contained in:
carllin
2019-11-14 00:32:07 -08:00
committed by GitHub
parent 7b05b3dbb3
commit 43e2301e2c
14 changed files with 187 additions and 128 deletions

View File

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