rippled
|
Maintains squelching of relaying messages from validators. More...
Public Member Functions | |
Squelch (beast::Journal journal) | |
virtual | ~Squelch ()=default |
bool | addSquelch (PublicKey const &validator, std::chrono::seconds const &squelchDuration) |
Squelch validation/proposal relaying for the validator. More... | |
void | removeSquelch (PublicKey const &validator) |
Remove the squelch. More... | |
bool | expireSquelch (PublicKey const &validator) |
Remove expired squelch. More... | |
Private Types | |
using | time_point = typename clock_type::time_point |
Private Attributes | |
hash_map< PublicKey, time_point > | squelched_ |
Maintains the list of squelched relaying to downstream peers. More... | |
const beast::Journal | journal_ |
Maintains squelching of relaying messages from validators.
|
private |
|
explicit |
|
virtualdefault |
bool ripple::reduce_relay::Squelch< clock_type >::addSquelch | ( | PublicKey const & | validator, |
std::chrono::seconds const & | squelchDuration | ||
) |
void ripple::reduce_relay::Squelch< clock_type >::removeSquelch | ( | PublicKey const & | validator | ) |
bool ripple::reduce_relay::Squelch< clock_type >::expireSquelch | ( | PublicKey const & | validator | ) |
|
private |
|
private |