Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P2P: Limit peers option #1196

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
5 changes: 4 additions & 1 deletion plugins/net_plugin/include/eosio/net_plugin/net_plugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ namespace eosio {
bool is_blocks_only = false;
bool is_transactions_only = false;
time_point last_vote_received;
time_point start_time;
uint32_t unique_trx_count = 0;
uint32_t unique_blk_count = 0;
handshake_message last_handshake;
};

Expand Down Expand Up @@ -105,4 +108,4 @@ namespace eosio {

FC_REFLECT( eosio::connection_status, (peer)(remote_ip)(remote_port)(connecting)(syncing)
(is_bp_peer)(is_socket_open)(is_blocks_only)(is_transactions_only)
(last_vote_received)(last_handshake) )
(last_vote_received)(start_time)(unique_trx_count)(unique_blk_count)(last_handshake) )
Loading