|
| | TxOrphanage () |
| |
| std::vector< PoolTx > | GetOrphanTransactions () const |
| |
| | TxPool (const std::string &txKindIn, std::chrono::seconds expireTimeIn, std::chrono::seconds expireIntervalIn) |
| |
| bool | AddTx (const CTransactionRef &tx, NodeId peer) |
| | Add a new transaction to the pool.
|
| |
| bool | AddAnnouncer (const TxId &txid, NodeId peer) |
| | Add an additional announcer to a tx if it exists.
|
| |
| bool | HaveTx (const TxId &txid) const |
| | Check if we already have an the transaction.
|
| |
| bool | HaveTxFromPeer (const TxId &txid, NodeId peer) const |
| | Check if a {tx, peer} exists in the pool.
|
| |
| CTransactionRef | GetTx (const TxId &txid) const |
| |
| std::vector< CTransactionRef > | GetConflictTxs (const CTransactionRef &tx) const |
| |
| CTransactionRef | GetTxToReconsider (NodeId peer) |
| | Extract a transaction from a peer's work set.
|
| |
| int | EraseTx (const TxId &txid) |
| | Erase a tx by txid.
|
| |
| void | EraseForPeer (NodeId peer) |
| | Maybe erase all txs announced by a peer (eg, after that peer disconnects).
|
| |
| void | EraseForBlock (const CBlock &block) |
| | Erase all txs included in or invalidated by a new block.
|
| |
| unsigned int | LimitTxs (unsigned int max_txs, FastRandomContext &rng) |
| | Limit the txs to the given maximum.
|
| |
| void | AddChildrenToWorkSet (const CTransaction &tx, FastRandomContext &rng) |
| | Add any tx that list a particular tx as a parent into the from peer's work set.
|
| |
| bool | HaveTxToReconsider (NodeId peer) |
| | Does this peer have any work to do?
|
| |
| std::vector< CTransactionRef > | GetChildrenFromSamePeer (const CTransactionRef &parent, NodeId nodeid) const |
| | Get all children that spend from this tx and were received from nodeid.
|
| |
| size_t | Size () const |
| | Return how many entries exist in the pool.
|
| |
| std::vector< PoolTx > | GetPoolTransactions () const |
| |
Definition at line 16 of file txorphanage.h.