diff options
author | Ava Chow <github@achow101.com> | 2024-01-25 16:27:08 -0500 |
---|---|---|
committer | Ava Chow <github@achow101.com> | 2024-06-07 12:40:21 -0400 |
commit | 27e70f1f5be1f536f2314cd2ea42b4f80d927fbd (patch) | |
tree | 0cdfa2c9d06bf39b9839de304975aba80caf3c28 /src/script/interpreter.cpp | |
parent | 6e4d18f37f42894fe9a0d7948c1da3f061fc6b60 (diff) | |
download | bitcoin-27e70f1f5be1f536f2314cd2ea42b4f80d927fbd.tar.xz |
consensus: Store transaction nVersion as uint32_t
Given that the use of a transaction's nVersion is always as an unsigned
int, it doesn't make sense to store it as signed and then cast it to
unsigned.
Diffstat (limited to 'src/script/interpreter.cpp')
-rw-r--r-- | src/script/interpreter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/interpreter.cpp b/src/script/interpreter.cpp index c969ce45f1..1ebf5425a5 100644 --- a/src/script/interpreter.cpp +++ b/src/script/interpreter.cpp @@ -1743,7 +1743,7 @@ bool GenericTransactionSignatureChecker<T>::CheckSequence(const CScriptNum& nSeq // Fail if the transaction's version number is not set high // enough to trigger BIP 68 rules. - if (static_cast<uint32_t>(txTo->nVersion) < 2) + if (txTo->nVersion < 2) return false; // Sequence numbers with their most significant bit set are not |