forScript method
Returns the appropriate integer for a script; e.g. for relative timelocks
Implementation
int forScript() {
if (seqType == TYPE_REPLACE_BY_FEE) {
throw const FormatException("RBF is not to be included in a script.");
}
int scriptIntiger = value;
if (seqType == TYPE_RELATIVE_TIMELOCK && !isTypeBlock) {
scriptIntiger |= 1 << 22;
}
return scriptIntiger;
}