Skip to content

Commit

Permalink
mempool_entry: improve struct packing
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtowns committed Aug 7, 2023
1 parent 1a11806 commit fb02ba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kernel/mempool_entry.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ class CTxMemPoolEntry
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
Expand Down Expand Up @@ -110,8 +110,8 @@ class CTxMemPoolEntry
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},
Expand Down

0 comments on commit fb02ba3

Please sign in to comment.