[#CTxMemPoolEntry-2constructor-034]
= xref:CTxMemPoolEntry.adoc[CTxMemPoolEntry]::CTxMemPoolEntry
:relfileprefix: ../
:mrdocs:

Constructs a mempool entry for a transaction&period;

== Synopsis

Declared in `&lt;kernel&sol;mempool&lowbar;entry&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
CTxMemPoolEntry(
    xref:CTransactionRef.adoc[CTransactionRef] const& tx,
    xref:CAmount.adoc[CAmount] fee,
    int64&lowbar;t time,
    unsigned int entry&lowbar;height,
    uint64&lowbar;t entry&lowbar;sequence,
    bool spends&lowbar;coinbase,
    int64&lowbar;t sigops&lowbar;cost,
    xref:LockPoints.adoc[LockPoints] lp);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| The transaction being stored&period;
| *fee*
| The fee the transaction paid&period;
| *time*
| Local time when the transaction entered the mempool&period;
| *entry&lowbar;height*
| Chain height when the transaction entered the mempool&period;
| *entry&lowbar;sequence*
| Sequence number used to gate the transaction for relay&period;
| *spends&lowbar;coinbase*
| Whether the transaction spends a coinbase output&period;
| *sigops&lowbar;cost*
| Total sigop cost of the transaction&period;
| *lp*
| Lock points tracking when the transaction becomes final&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
