Wire Sysio Wire Sysion 1.0.0
|
Public Member Functions | |
block_status_monitor (fc::microseconds window_size=fc::microseconds(2 *1000), uint32_t max_rejected_windows=13) | |
block_status_monitor (const block_status_monitor &)=delete | |
block_status_monitor (block_status_monitor &&)=delete | |
~block_status_monitor ()=default | |
void | reset () |
reset to initial state | |
void | accepted () |
called when a block is accepted (sync_recv_block) | |
void | rejected () |
called when a block is rejected | |
auto | events () const |
returns number of consecutive rbws | |
bool | max_events_violated () const |
indicates if the max number of consecutive rbws has been reached or exceeded | |
block_status_monitor & | operator= (const block_status_monitor &)=delete |
assignment not allowed | |
block_status_monitor & | operator= (block_status_monitor &&)=delete |
monitors the status of blocks as to whether a block is accepted (sync'd) or rejected. It groups consecutive rejected blocks in a (configurable) time window (rbw) and maintains a metric of the number of consecutive rejected block time windows (rbws).
Definition at line 546 of file net_plugin.cpp.
|
inlineexplicit |
ctor
[in] | window_size | The time, in microseconds, of the rejected block window |
[in] | max_rejected_windows | The max consecutive number of rejected block windows |
Definition at line 560 of file net_plugin.cpp.
|
delete |
|
delete |
|
default |
|
inline |
Definition at line 569 of file net_plugin.cpp.
|
inline |
Definition at line 573 of file net_plugin.cpp.
|
inline |
Definition at line 575 of file net_plugin.cpp.
|
delete |
|
delete |
void sysio::block_status_monitor::rejected | ( | ) |
Definition at line 1516 of file net_plugin.cpp.
void sysio::block_status_monitor::reset | ( | ) |
Definition at line 1511 of file net_plugin.cpp.