Skip to content

Commit fb02ba3

Browse files
committed
mempool_entry: improve struct packing
1 parent 1a11806 commit fb02ba3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/kernel/mempool_entry.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ class CTxMemPoolEntry
7878
const int32_t nTxWeight; //!< ... and avoid recomputing tx weight (also used for GetTxSize())
7979
const size_t nUsageSize; //!< ... and total memory usage
8080
const int64_t nTime; //!< Local time when entering the mempool
81+
const uint64_t entry_sequence; //!< Sequence number used to determine whether this transaction is too recent for relay
8182
const unsigned int entryHeight; //!< Chain height when entering the mempool
82-
const uint64_t entry_sequence; //!< Sequence number used to determine w hether this transaction is too recent for relay
8383
const bool spendsCoinbase; //!< keep track of transactions that spend a coinbase
8484
const int64_t sigOpCost; //!< Total sigop cost
8585
CAmount m_modified_fee; //!< Used for determining the priority of the transaction for mining in a block
@@ -110,8 +110,8 @@ class CTxMemPoolEntry
110110
nTxWeight{GetTransactionWeight(*tx)},
111111
nUsageSize{RecursiveDynamicUsage(tx)},
112112
nTime{time},
113-
entryHeight{entry_height},
114113
entry_sequence{entry_sequence},
114+
entryHeight{entry_height},
115115
spendsCoinbase{spends_coinbase},
116116
sigOpCost{sigops_cost},
117117
m_modified_fee{nFee},

0 commit comments

Comments
 (0)