Skip to main content

validate_answer

Function validate_answer 

Source
pub fn validate_answer(req: &HeaderRequest, headers: &[Rlp]) -> Result<()>
Expand description

Refuse headers that do not answer req: more than asked for, the wrong numbers, a first header whose hash is not the one asked for, or (for a contiguous request) a header that does not name the previous one as its parent.