Skip to content

Commit

Permalink
GH-3 Use chain pluging accept_votes to init p2p_accept_votes
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Apr 16, 2024
1 parent 6cc6820 commit 166a580
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4278,7 +4278,6 @@ namespace eosio {
resp_expected_period = def_resp_expected_wait;
max_nodes_per_host = options.at( "p2p-max-nodes-per-host" ).as<int>();
p2p_accept_transactions = options.at( "p2p-accept-transactions" ).as<bool>();
p2p_accept_votes = options.at("vote-threads").as<uint16_t>() != 0;

use_socket_read_watermark = options.at( "use-socket-read-watermark" ).as<bool>();
keepalive_interval = std::chrono::milliseconds( options.at( "p2p-keepalive-interval-ms" ).as<int>() );
Expand Down Expand Up @@ -4427,6 +4426,8 @@ namespace eosio {
"***********************************\n" );
}

p2p_accept_votes = chain_plug->accept_votes();

std::vector<string> listen_addresses = p2p_addresses;

EOS_ASSERT( p2p_addresses.size() == p2p_server_addresses.size(), chain::plugin_config_exception, "" );
Expand Down

0 comments on commit 166a580

Please sign in to comment.