aboutsummaryrefslogtreecommitdiff
path: root/src/primitives/transaction.h
diff options
context:
space:
mode:
authorJeremy Rubin <jeremy.l.rubin@gmail.com>2017-07-12 17:18:35 -0700
committerJeremy Rubin <jeremy.l.rubin@gmail.com>2017-07-12 17:18:35 -0700
commit37495e0d8d4bd98ae04364eae2f4ecb7084a9234 (patch)
tree997387e9aa5f3579effb5d4f4a8020fdf9f45703 /src/primitives/transaction.h
parent479afa0f8486146a35f1fb96be1826061ecbcf23 (diff)
Reorder C{,Mutable}Transaction for better packing
Diffstat (limited to 'src/primitives/transaction.h')
-rw-r--r--src/primitives/transaction.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h
index 00ac0b92b5..06e0e7bb99 100644
--- a/src/primitives/transaction.h
+++ b/src/primitives/transaction.h
@@ -279,9 +279,9 @@ public:
// actually immutable; deserialization and assignment are implemented,
// and bypass the constness. This is safe, as they update the entire
// structure, including the hash.
- const int32_t nVersion;
const std::vector<CTxIn> vin;
const std::vector<CTxOut> vout;
+ const int32_t nVersion;
const uint32_t nLockTime;
private:
@@ -362,9 +362,9 @@ public:
/** A mutable version of CTransaction. */
struct CMutableTransaction
{
- int32_t nVersion;
std::vector<CTxIn> vin;
std::vector<CTxOut> vout;
+ int32_t nVersion;
uint32_t nLockTime;
CMutableTransaction();