Extract the timelock value encoded in a timelocked tapleaf, if any.
The return value is unit-ambiguous: for a CSV leaf it is a BIP-68
nSequence (relative timelock); for a CLTV leaf it is an absolute
nLockTime. Callers must know which leaf shape they are inspecting to
interpret the number correctly, and must not copy a CSV result into
Transaction.lockTime (or vice versa).
Extract the timelock value encoded in a timelocked tapleaf, if any.
The return value is unit-ambiguous: for a CSV leaf it is a BIP-68 nSequence (relative timelock); for a CLTV leaf it is an absolute nLockTime. Callers must know which leaf shape they are inspecting to interpret the number correctly, and must not copy a CSV result into
Transaction.lockTime(or vice versa).