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/test/sighash_tests.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/test/sighash_tests.cpp')
-rw-r--r-- | src/test/sighash_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/sighash_tests.cpp b/src/test/sighash_tests.cpp index d08d5519a1..d43c474ae1 100644 --- a/src/test/sighash_tests.cpp +++ b/src/test/sighash_tests.cpp @@ -92,7 +92,7 @@ void static RandomScript(CScript &script) { void static RandomTransaction(CMutableTransaction& tx, bool fSingle) { - tx.nVersion = int(InsecureRand32()); + tx.nVersion = InsecureRand32(); tx.vin.clear(); tx.vout.clear(); tx.nLockTime = (InsecureRandBool()) ? InsecureRand32() : 0; |