Skip to content

fix problem with restricting network traffix for only one node network

Marcin Sobczyk requested to merge ms_allow_fork_also_for_one_node_network into master

When sending empty list to method 'set_allowed_peers' we allow for all connections. Problem appears when there is only one node in network and we want to restrict network traffic for this network (disallow all connections). Previously we would send empty list in this case, effectively doing nothing. With this fix we send node self id, effectively disallowing for all connections.

Edited by Piotr Batko

Merge request reports