SequenceLocks

Check if transaction is final per BIP 68 sequence numbers and can be included in a block. Consensus critical. Takes as input a list of heights at which tx's inputs (in order) confirmed.

Synopsis

Declared in <consensus/tx_verify.h>

bool
SequenceLocks(
    CTransaction const& tx,
    int flags,
    std::vector<int>& prevHeights,
    CBlockIndex const& block);

Return Value

true if tx satisfies its BIP 68 sequence locks for block.

Parameters

NameDescription
txThe transaction to test against its sequence locks.
flagsLock-time verification flags controlling BIP 68 enforcement.
prevHeightsConfirmation height of each of tx's inputs, in order.
blockBlock in which tx would be included.