pub fn check_group_range(
start_group: u64,
end_group: u64,
) -> Result<(), CodecError>Expand description
Refuse a subscription whose End Group is earlier than its start group, where the End Group is inclusive and always present.
Drafts 08 through 14 describe the SUBSCRIBE AbsoluteRange field as “the end Group ID, inclusive. Only present for the ‘AbsoluteRange’ filter type”, so there is no value that means “no end” and nothing to exempt. The rule is Section 7.4 through Section 9.7: “End Group MUST specify the same or a larger Group than specified in Start.”
Only the groups are compared. Those drafts have no End Object on SUBSCRIBE, so an end group equal to the start group is the whole of that group and is what the draft calls out as legal: “If the specified End Group is the same group specified in Start, the remainder of that Group passes the filter.”
§Errors
crate::error::CodecError::InvalidRange if the end group is smaller than
the start group.