* Track outstanding nonces in repair * Rework outstanding requests to use lru cache and randomize nonces Co-authored-by: Carl <carl@solana.com>
6 lines
160 B
Rust
6 lines
160 B
Rust
pub trait RequestResponse {
|
|
type Response;
|
|
fn num_expected_responses(&self) -> u32;
|
|
fn verify_response(&self, response: &Self::Response) -> bool;
|
|
}
|