#include <transaction_pool.hpp>
Definition at line 19 of file transaction_pool.hpp.
struct kagome::transaction_pool::TransactionPool::Status |
virtual kagome::transaction_pool::TransactionPool::~TransactionPool |
( |
| ) |
|
|
virtualdefault |
virtual const std::unordered_map<Transaction::Hash, std::shared_ptr<Transaction> >& kagome::transaction_pool::TransactionPool::getPendingTransactions |
( |
| ) |
const |
|
pure virtual |
virtual std::map<Transaction::Hash, std::shared_ptr<Transaction> > kagome::transaction_pool::TransactionPool::getReadyTransactions |
( |
| ) |
const |
|
pure virtual |
virtual Status kagome::transaction_pool::TransactionPool::getStatus |
( |
| ) |
const |
|
pure virtual |
virtual outcome::result<Transaction> kagome::transaction_pool::TransactionPool::removeOne |
( |
const Transaction::Hash & |
txHash | ) |
|
|
pure virtual |
virtual outcome::result<std::vector<Transaction> > kagome::transaction_pool::TransactionPool::removeStale |
( |
const primitives::BlockId & |
at | ) |
|
|
pure virtual |
Remove from the pool and temporarily ban transactions which longevity is expired
- Parameters
-
at | a block that is considered current for removal (transaction t is banned if 'block number when t got to pool' + 't.longevity' <= block number of at) |
- Returns
- removed transactions
Implemented in kagome::transaction_pool::TransactionPoolImpl.
Builds and validates transaction for provided extrinsic, and submit result transaction into pool
- Parameters
-
source | how extrinsic was received (for example external or submitted through offchain worker) |
extrinsic | set of bytes representing either transaction or inherent |
- Returns
- hash of successfully submitted transaction or error if state is invalid or unknown
Implemented in kagome::transaction_pool::TransactionPoolImpl.
virtual outcome::result<void> kagome::transaction_pool::TransactionPool::submitOne |
( |
Transaction && |
tx | ) |
|
|
pure virtual |
Import one verified transaction to the pool. If it has unresolved dependencies (requires tags of transactions that are not in the pool yet), it will wait in the pool until its dependencies are solved, in which case it becomes ready and may be pruned, or it is banned from the pool for some amount of time as its longevity is reached or the pool is overflown
Implemented in kagome::transaction_pool::TransactionPoolImpl.
The documentation for this class was generated from the following file: