Extract CTxIn::MAX_SEQUENCE_NONFINAL constant

This commit is contained in:
MarcoFalke
2022-01-10 14:48:13 +01:00
parent 973c390298
commit fa4339e4c1
5 changed files with 32 additions and 12 deletions

View File

@@ -63,7 +63,7 @@ CMutableTransaction ConstructTransaction(const UniValue& inputs_in, const UniVal
if (rbf) {
nSequence = MAX_BIP125_RBF_SEQUENCE; /* CTxIn::SEQUENCE_FINAL - 2 */
} else if (rawTx.nLockTime) {
nSequence = CTxIn::SEQUENCE_FINAL - 1;
nSequence = CTxIn::MAX_SEQUENCE_NONFINAL; /* CTxIn::SEQUENCE_FINAL - 1 */
} else {
nSequence = CTxIn::SEQUENCE_FINAL;
}