6 #ifndef KAGOME_POOL_MODERATOR_IMPL_HPP 7 #define KAGOME_POOL_MODERATOR_IMPL_HPP 18 using Map = std::map<common::Hash256, clock::SystemClock::TimePoint>;
30 std::chrono::minutes(30);
55 const Transaction &tx)
override;
64 std::shared_ptr<clock::SystemClock>
clock_;
71 #endif // KAGOME_POOL_MODERATOR_IMPL_HPP 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
static constexpr size_t kDefaultExpectedSize
~PoolModeratorImpl() override=default
std::shared_ptr< clock::SystemClock > clock_
static constexpr clock::SystemClock::Duration kDefaultBanFor
clock::SystemClock::Duration ban_for
typename ClockType::duration Duration
std::map< common::Hash256, clock::SystemClock::TimePoint > Map
void updateBan() override
PoolModeratorImpl(std::shared_ptr< clock::SystemClock > clock, Params parameters)
size_t bannedNum() const override