Files
solana/core/src/request_response.rs
sakridge 8e69dd42c1 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>
2021-04-20 09:37:33 -07:00

6 lines
160 B
Rust

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