Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #8587 from EOSIO/p2p-read-only-dev
Browse files Browse the repository at this point in the history
P2p read only - develop
  • Loading branch information
arhag authored Feb 7, 2020
2 parents 324500c + 5c5916b commit 68f6976
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3366,8 +3366,11 @@ namespace eosio {
chain::controller&cc = my->chain_plug->chain();
my->db_read_mode = cc.get_read_mode();
if( cc.in_immutable_mode() && my->p2p_address.size() ) {
my->p2p_address.clear();
fc_wlog( logger, "node in read-only mode disabling incoming p2p connections" );
fc_wlog( logger, "\n"
"**********************************\n"
"* Read Only Mode *\n"
"* - Transactions not forwarded - *\n"
"**********************************\n" );
}

tcp::endpoint listen_endpoint;
Expand Down

0 comments on commit 68f6976

Please sign in to comment.