diff options
| author | Jeremy Rubin <[email protected]> | 2017-07-12 17:18:35 -0700 |
|---|---|---|
| committer | Jeremy Rubin <[email protected]> | 2017-07-12 17:18:35 -0700 |
| commit | 37495e0d8d4bd98ae04364eae2f4ecb7084a9234 (patch) | |
| tree | 997387e9aa5f3579effb5d4f4a8020fdf9f45703 /src/primitives/transaction.h | |
| parent | Merge #9804: Fixes subscript 0 (&var[0]) where should use (var.data()) instead. (diff) | |
| download | discoin-37495e0d8d4bd98ae04364eae2f4ecb7084a9234.tar.xz discoin-37495e0d8d4bd98ae04364eae2f4ecb7084a9234.zip | |
Reorder C{,Mutable}Transaction for better packing
Diffstat (limited to 'src/primitives/transaction.h')
| -rw-r--r-- | src/primitives/transaction.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h index 00ac0b92b..06e0e7bb9 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(); |