Skip to main content

check_v2_stream_sequence

Function check_v2_stream_sequence 

Source
pub fn check_v2_stream_sequence(
    has_last: bool,
    last: i64,
    seq: i64,
) -> V2Result<()>
Expand description

Go CheckV2StreamSequence: the normative stream-sequence rule. has_last reports whether the stream key already has accepted state. Ok means the store must record seq as the new last value in the claim transaction.