Skip to main content

is_missing_state_message

Function is_missing_state_message 

Source
pub fn is_missing_state_message(message: &str) -> bool
Expand description

Returns true if message reads like a node rejecting a request for state it has pruned.

These rejections usually carry a generic code (-32000), so only the message tells them apart.