Add AncestorHashesRepair type (#18681)

This commit is contained in:
carllin
2021-07-15 19:29:53 -07:00
committed by GitHub
parent 37ee0b5599
commit 8a846b048e
10 changed files with 300 additions and 101 deletions

View File

@@ -806,7 +806,7 @@ mod test {
#[test]
fn test_prune_shreds() {
use crate::serve_repair::RepairType;
use crate::serve_repair::ShredRepairType;
use std::net::{IpAddr, Ipv4Addr};
solana_logger::setup();
let (common, coding) = Shredder::new_coding_shred_header(5, 5, 5, 6, 6, 0);
@@ -818,7 +818,7 @@ mod test {
nonce: 0,
};
let outstanding_requests = Arc::new(RwLock::new(OutstandingRepairs::default()));
let repair_type = RepairType::Orphan(9);
let repair_type = ShredRepairType::Orphan(9);
let nonce = outstanding_requests
.write()
.unwrap()