Skip to content

Commit

Permalink
keep nVersion as 16 byte integer
Browse files Browse the repository at this point in the history
Signed-off-by: Pasta <pasta@dashboost.org>
  • Loading branch information
PastaPastaPasta committed Jan 4, 2020
1 parent ddfc72c commit 6bf6c30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/primitives/transaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ class CTransaction
// structure, including the hash.
const std::vector<CTxIn> vin;
const std::vector<CTxOut> vout;
const int32_t nVersion;
const int16_t nVersion;
const int16_t nType;
const uint32_t nLockTime;
const std::vector<uint8_t> vExtraPayload; // only available for special transaction types
Expand Down Expand Up @@ -292,7 +292,7 @@ struct CMutableTransaction
{
std::vector<CTxIn> vin;
std::vector<CTxOut> vout;
int32_t nVersion;
int16_t nVersion;
int16_t nType;
uint32_t nLockTime;
std::vector<uint8_t> vExtraPayload; // only available for special transaction types
Expand Down

0 comments on commit 6bf6c30

Please sign in to comment.