[validation] Bump tx.nVersion for CSV enforcement

This commit is contained in:
jc 2018-05-19 21:57:51 -04:00
parent 643ce1226c
commit 7a0c22195e
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ std::pair<int, int64_t> CalculateSequenceLocks(const CTransaction &tx, int flags
// tx.nVersion is signed integer so requires cast to unsigned otherwise
// we would be doing a signed comparison and half the range of nVersion
// wouldn't support BIP 68.
bool fEnforceBIP68 = static_cast<uint32_t>(tx.nVersion) >= 2
bool fEnforceBIP68 = static_cast<uint32_t>(tx.nVersion) >= 3
&& flags & LOCKTIME_VERIFY_SEQUENCE;
// Do not enforce sequence numbers as a relative lock time