@@ -497,24 +497,37 @@ class MemPoolAccept
497
497
// of checking a given transaction.
498
498
struct Workspace {
499
499
explicit Workspace (const CTransactionRef& ptx) : m_ptx(ptx), m_hash(ptx->GetHash ()) {}
500
+ /* * Txids of mempool transactions that this transaction directly conflicts with. */
500
501
std::set<uint256> m_conflicts;
502
+ /* * Iterators to mempool entries that this transaction directly conflicts with. */
501
503
CTxMemPool::setEntries m_iters_conflicting;
504
+ /* * Iterators to all mempool entries that would be replaced by this transaction, including
505
+ * those it directly conflicts with and their descendants. */
502
506
CTxMemPool::setEntries m_all_conflicting;
507
+ /* * All mempool ancestors of this transaction. */
503
508
CTxMemPool::setEntries m_ancestors;
509
+ /* * Mempool entry constructed for this transaction. Constructed in PreChecks() but not
510
+ * inserted into the mempool until Finalize(). */
504
511
std::unique_ptr<CTxMemPoolEntry> m_entry;
512
+ /* * Pointers to the transactions that have been removed from the mempool and replaced by
513
+ * this transaction, used to return to the MemPoolAccept caller. Only populated if
514
+ * validation is successful and the original transactions are removed. */
505
515
std::list<CTransactionRef> m_replaced_transactions;
506
516
507
517
/* * Virtual size of the transaction as used by the mempool, calculated using serialized size
508
518
* of the transaction and sigops. */
509
519
int64_t m_vsize;
520
+ /* * Fees paid by this transaction: total input amounts subtracted by total output amounts. */
510
521
CAmount m_base_fees;
522
+ /* * Base fees + any fee delta set by the user with prioritisetransaction. */
511
523
CAmount m_modified_fees;
512
524
/* * Total modified fees of all transactions being replaced. */
513
525
CAmount m_conflicting_fees{0 };
514
526
/* * Total virtual size of all transactions being replaced. */
515
527
size_t m_conflicting_size{0 };
516
528
517
529
const CTransactionRef& m_ptx;
530
+ /* * Txid. */
518
531
const uint256& m_hash;
519
532
TxValidationState m_state;
520
533
/* * A temporary cache containing serialized transaction data for signature verification.
0 commit comments