Wire Sysio Wire Sysion 1.0.0
|
Public Member Functions | |
void | update_chain_info () |
std::tuple< uint32_t, uint32_t, uint32_t, block_id_type, block_id_type, block_id_type > | get_chain_info () const |
void | start_listen_loop () |
void | on_accepted_block (const block_state_ptr &bs) |
void | on_pre_accepted_block (const signed_block_ptr &bs) |
void | transaction_ack (const std::pair< fc::exception_ptr, packed_transaction_ptr > &) |
void | on_irreversible_block (const block_state_ptr &blk) |
void | start_conn_timer (boost::asio::steady_timer::duration du, std::weak_ptr< connection > from_connection) |
void | start_expire_timer () |
void | start_monitors () |
void | expire () |
void | connection_monitor (std::weak_ptr< connection > from_connection, bool reschedule) |
bool | authenticate_peer (const handshake_message &msg) const |
Determine if a peer is allowed to connect. | |
chain::public_key_type | get_authentication_key () const |
Retrieve public key used to authenticate with peers. | |
chain::signature_type | sign_compact (const chain::public_key_type &signer, const fc::sha256 &digest) const |
Returns a signature of the digest using the corresponding private key of the signer. | |
connection_ptr | find_connection (const string &host) const |
string | connect (const string &host) |
Peer Timestamps | |
Time message handling | |
void | ticker () |
Peer heartbeat ticker. | |
Static Public Member Functions | |
static constexpr uint16_t | to_protocol_version (uint16_t v) |
Definition at line 218 of file net_plugin.cpp.
enum sysio::net_plugin_impl::possible_connections : char |
bool sysio::net_plugin_impl::authenticate_peer | ( | const handshake_message & | msg | ) | const |
Checks current connection mode and key authentication.
Definition at line 3438 of file net_plugin.cpp.
Definition at line 3856 of file net_plugin.cpp.
void sysio::net_plugin_impl::connection_monitor | ( | std::weak_ptr< connection > | from_connection, |
bool | reschedule ) |
Definition at line 3332 of file net_plugin.cpp.
void sysio::net_plugin_impl::expire | ( | ) |
Definition at line 3320 of file net_plugin.cpp.
connection_ptr sysio::net_plugin_impl::find_connection | ( | const string & | host | ) | const |
Definition at line 3903 of file net_plugin.cpp.
chain::public_key_type sysio::net_plugin_impl::get_authentication_key | ( | ) | const |
Finds a key to use for authentication. If this node is a producer, use the front of the producer key map. If the node is not a producer but has a configured private key, use it. If the node is neither a producer nor has a private key, returns an empty key.
Definition at line 3484 of file net_plugin.cpp.
std::tuple< uint32_t, uint32_t, uint32_t, block_id_type, block_id_type, block_id_type > sysio::net_plugin_impl::get_chain_info | ( | ) | const |
Definition at line 2713 of file net_plugin.cpp.
void sysio::net_plugin_impl::on_accepted_block | ( | const block_state_ptr & | bs | ) |
Definition at line 3379 of file net_plugin.cpp.
void sysio::net_plugin_impl::on_irreversible_block | ( | const block_state_ptr & | blk | ) |
Definition at line 3416 of file net_plugin.cpp.
void sysio::net_plugin_impl::on_pre_accepted_block | ( | const signed_block_ptr & | bs | ) |
Definition at line 3395 of file net_plugin.cpp.
chain::signature_type sysio::net_plugin_impl::sign_compact | ( | const chain::public_key_type & | signer, |
const fc::sha256 & | digest ) const |
If there are no configured private keys, returns an empty signature.
Definition at line 3493 of file net_plugin.cpp.
void sysio::net_plugin_impl::start_conn_timer | ( | boost::asio::steady_timer::duration | du, |
std::weak_ptr< connection > | from_connection ) |
Definition at line 3246 of file net_plugin.cpp.
void sysio::net_plugin_impl::start_expire_timer | ( | ) |
Definition at line 3268 of file net_plugin.cpp.
void sysio::net_plugin_impl::start_listen_loop | ( | ) |
Definition at line 2362 of file net_plugin.cpp.
void sysio::net_plugin_impl::start_monitors | ( | ) |
Definition at line 3307 of file net_plugin.cpp.
void sysio::net_plugin_impl::ticker | ( | ) |
Definition at line 3284 of file net_plugin.cpp.
Definition at line 3909 of file net_plugin.cpp.
void sysio::net_plugin_impl::transaction_ack | ( | const std::pair< fc::exception_ptr, packed_transaction_ptr > & | results | ) |
Definition at line 3422 of file net_plugin.cpp.
void sysio::net_plugin_impl::update_chain_info | ( | ) |
Definition at line 2698 of file net_plugin.cpp.
unique_ptr<tcp::acceptor> sysio::net_plugin_impl::acceptor |
Definition at line 220 of file net_plugin.cpp.
possible_connections sysio::net_plugin_impl::allowed_connections {None} |
Definition at line 243 of file net_plugin.cpp.
vector<chain::public_key_type> sysio::net_plugin_impl::allowed_peers |
Definition at line 234 of file net_plugin.cpp.
chain_id_type sysio::net_plugin_impl::chain_id |
Definition at line 260 of file net_plugin.cpp.
chain_plugin* sysio::net_plugin_impl::chain_plug = nullptr |
Definition at line 264 of file net_plugin.cpp.
std::set< connection_ptr > sysio::net_plugin_impl::connections |
Definition at line 270 of file net_plugin.cpp.
|
mutable |
Definition at line 269 of file net_plugin.cpp.
unique_ptr<boost::asio::steady_timer> sysio::net_plugin_impl::connector_check_timer |
Definition at line 273 of file net_plugin.cpp.
std::mutex sysio::net_plugin_impl::connector_check_timer_mtx |
Definition at line 272 of file net_plugin.cpp.
int sysio::net_plugin_impl::connector_checks_in_flight {0} |
Definition at line 274 of file net_plugin.cpp.
boost::asio::steady_timer::duration sysio::net_plugin_impl::connector_period {0} |
Definition at line 245 of file net_plugin.cpp.
std::atomic<uint32_t> sysio::net_plugin_impl::current_connection_id {0} |
Definition at line 221 of file net_plugin.cpp.
unique_ptr< dispatch_manager > sysio::net_plugin_impl::dispatcher |
Definition at line 224 of file net_plugin.cpp.
unique_ptr<boost::asio::steady_timer> sysio::net_plugin_impl::expire_timer |
Definition at line 277 of file net_plugin.cpp.
std::mutex sysio::net_plugin_impl::expire_timer_mtx |
Definition at line 276 of file net_plugin.cpp.
std::chrono::milliseconds sysio::net_plugin_impl::heartbeat_timeout {keepalive_interval * 2} |
Definition at line 249 of file net_plugin.cpp.
std::atomic<bool> sysio::net_plugin_impl::in_shutdown {false} |
Definition at line 282 of file net_plugin.cpp.
compat::channels::transaction_ack::channel_type::handle sysio::net_plugin_impl::incoming_transaction_ack_subscription |
Definition at line 284 of file net_plugin.cpp.
std::chrono::milliseconds sysio::net_plugin_impl::keepalive_interval {std::chrono::milliseconds{def_keepalive_interval}} |
Definition at line 248 of file net_plugin.cpp.
unique_ptr<boost::asio::steady_timer> sysio::net_plugin_impl::keepalive_timer |
Definition at line 280 of file net_plugin.cpp.
std::mutex sysio::net_plugin_impl::keepalive_timer_mtx |
Definition at line 279 of file net_plugin.cpp.
int sysio::net_plugin_impl::max_cleanup_time_ms = 0 |
Definition at line 251 of file net_plugin.cpp.
uint32_t sysio::net_plugin_impl::max_client_count = 0 |
Definition at line 252 of file net_plugin.cpp.
uint32_t sysio::net_plugin_impl::max_nodes_per_host = 1 |
Definition at line 253 of file net_plugin.cpp.
fc::sha256 sysio::net_plugin_impl::node_id |
Definition at line 261 of file net_plugin.cpp.
bool sysio::net_plugin_impl::p2p_accept_transactions = true |
Definition at line 254 of file net_plugin.cpp.
string sysio::net_plugin_impl::p2p_address |
Thread safe, only updated in plugin initialize
Definition at line 230 of file net_plugin.cpp.
fc::microseconds sysio::net_plugin_impl::p2p_dedup_cache_expire_time_us {} |
Definition at line 255 of file net_plugin.cpp.
string sysio::net_plugin_impl::p2p_server_address |
Definition at line 231 of file net_plugin.cpp.
const std::chrono::system_clock::duration sysio::net_plugin_impl::peer_authentication_interval {std::chrono::seconds{1}} |
Definition at line 258 of file net_plugin.cpp.
std::map<chain::public_key_type, chain::private_key_type> sysio::net_plugin_impl::private_keys |
Definition at line 236 of file net_plugin.cpp.
producer_plugin* sysio::net_plugin_impl::producer_plug = nullptr |
Definition at line 265 of file net_plugin.cpp.
boost::asio::steady_timer::duration sysio::net_plugin_impl::resp_expected_period {0} |
Definition at line 247 of file net_plugin.cpp.
Definition at line 233 of file net_plugin.cpp.
unique_ptr< sync_manager > sysio::net_plugin_impl::sync_master |
Definition at line 223 of file net_plugin.cpp.
std::optional<sysio::chain::named_thread_pool> sysio::net_plugin_impl::thread_pool |
Definition at line 287 of file net_plugin.cpp.
uint16_t sysio::net_plugin_impl::thread_pool_size = 2 |
Definition at line 286 of file net_plugin.cpp.
boost::asio::steady_timer::duration sysio::net_plugin_impl::txn_exp_period {0} |
Definition at line 246 of file net_plugin.cpp.
bool sysio::net_plugin_impl::use_socket_read_watermark = false |
Definition at line 266 of file net_plugin.cpp.
string sysio::net_plugin_impl::user_agent_name |
Definition at line 262 of file net_plugin.cpp.