#include <pool_moderator.hpp>
PoolModerator is responsible for banning transaction for a fixed amount of time to prevent them from returning to the transaction pool when it is undesirable
Definition at line 21 of file pool_moderator.hpp.
virtual kagome::transaction_pool::PoolModerator::~PoolModerator |
( |
| ) |
|
|
virtualdefault |
virtual void kagome::transaction_pool::PoolModerator::ban |
( |
const common::Hash256 & |
tx_hash | ) |
|
|
pure virtual |
virtual bool kagome::transaction_pool::PoolModerator::banIfStale |
( |
primitives::BlockNumber |
current_block, |
|
|
const Transaction & |
tx |
|
) |
| |
|
pure virtual |
virtual size_t kagome::transaction_pool::PoolModerator::bannedNum |
( |
| ) |
const |
|
pure virtual |
virtual bool kagome::transaction_pool::PoolModerator::isBanned |
( |
const Transaction::Hash & |
tx_hash | ) |
const |
|
pure virtual |
- Returns
- true if
- Parameters
-
tx_hash | is banned, false otherwise |
virtual void kagome::transaction_pool::PoolModerator::updateBan |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: