[][src]Function ssb_json_msg::verify::check_sequence

pub fn check_sequence<T>(msg: &Message<T>, prev_seq: u64) -> bool

Check whether the given message has the correct sequence number compared to the previous message's sequence number. If the message is the first of its feed, call this as check_sequence(&msg, 0).