[validation] Bump tx.nVersion for CSV enforcement
This commit is contained in:
parent
643ce1226c
commit
7a0c22195e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue