Skip to main content

scan_exhaustion_from_proto_opt

Function scan_exhaustion_from_proto_opt 

Source
pub fn scan_exhaustion_from_proto_opt(
    verdict: Option<i32>,
) -> Option<ScanExhaustion>
Expand description

Map an optional wire verdict: unset — or an explicit UNSPECIFIED zero, the placeholder the wire contract says “reads as no verdict” — means no verdict was purchased and nothing is claimed. Without this filter, a zero from a future peer would collapse through the safe fallback into Some(Limited), contradicting the contract and making “a purchased Limited” indistinguishable from “nothing claimed”.