13 std::shared_ptr<clock::SystemClock> clock,
Params parameters)
14 : clock_{std::move(clock)},
params_{parameters} {}
41 return it->second >=
clock_->now();
47 if (it->second < now) {
bool banIfStale(primitives::BlockNumber current_block, const Transaction &tx) override
void ban(const common::Hash256 &tx_hash) override
bool isBanned(const common::Hash256 &tx_hash) const override
Longevity valid_till
At which block the transaction becomes invalid?
SLBuffer< std::numeric_limits< size_t >::max()> Buffer
Hash hash
Extrinsic hash (non-unique)
std::shared_ptr< clock::SystemClock > clock_
clock::SystemClock::Duration ban_for
void updateBan() override
PoolModeratorImpl(std::shared_ptr< clock::SystemClock > clock, Params parameters)
size_t bannedNum() const override