Add non-default repair nonce values (#16512)

* Track outstanding nonces in repair

* Rework outstanding requests to use lru cache and randomize nonces

Co-authored-by: Carl <carl@solana.com>
This commit is contained in:
sakridge
2021-04-20 09:37:33 -07:00
committed by GitHub
parent 36e11998c7
commit 8e69dd42c1
6 changed files with 388 additions and 22 deletions

View File

@@ -0,0 +1,5 @@
pub trait RequestResponse {
type Response;
fn num_expected_responses(&self) -> u32;
fn verify_response(&self, response: &Self::Response) -> bool;
}