From fb02ba3c5f5bcd96b5e3622ef001b8e57ce63fc0 Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Mon, 7 Aug 2023 19:46:10 +1000 Subject: [PATCH] mempool_entry: improve struct packing --- src/kernel/mempool_entry.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel/mempool_entry.h b/src/kernel/mempool_entry.h index cb3069a71a3..1f175a5ccf9 100644 --- a/src/kernel/mempool_entry.h +++ b/src/kernel/mempool_entry.h @@ -78,8 +78,8 @@ private: const int32_t nTxWeight; //!< ... and avoid recomputing tx weight (also used for GetTxSize()) const size_t nUsageSize; //!< ... and total memory usage const int64_t nTime; //!< Local time when entering the mempool + const uint64_t entry_sequence; //!< Sequence number used to determine whether this transaction is too recent for relay const unsigned int entryHeight; //!< Chain height when entering the mempool - const uint64_t entry_sequence; //!< Sequence number used to determine w hether this transaction is too recent for relay const bool spendsCoinbase; //!< keep track of transactions that spend a coinbase const int64_t sigOpCost; //!< Total sigop cost CAmount m_modified_fee; //!< Used for determining the priority of the transaction for mining in a block @@ -110,8 +110,8 @@ public: nTxWeight{GetTransactionWeight(*tx)}, nUsageSize{RecursiveDynamicUsage(tx)}, nTime{time}, - entryHeight{entry_height}, entry_sequence{entry_sequence}, + entryHeight{entry_height}, spendsCoinbase{spends_coinbase}, sigOpCost{sigops_cost}, m_modified_fee{nFee},