|
|
@ -345,9 +345,7 @@ namespace cryptonote
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// No chain synchronization over hidden networks (tor, i2p, etc.)
|
|
|
|
// No chain synchronization over hidden networks (tor, i2p, etc.)
|
|
|
|
// if(context.m_remote_address.get_zone() != epee::net_utils::zone::public_)
|
|
|
|
if(context.m_remote_address.get_zone() != epee::net_utils::zone::public_)
|
|
|
|
// wow wow wow ...
|
|
|
|
|
|
|
|
if (false)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
context.m_state = cryptonote_connection_context::state_normal;
|
|
|
|
context.m_state = cryptonote_connection_context::state_normal;
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
@ -2386,7 +2384,7 @@ skip:
|
|
|
|
std::vector<std::pair<epee::net_utils::zone, boost::uuids::uuid>> fullConnections, fluffyConnections;
|
|
|
|
std::vector<std::pair<epee::net_utils::zone, boost::uuids::uuid>> fullConnections, fluffyConnections;
|
|
|
|
m_p2p->for_each_connection([this, &exclude_context, &fullConnections, &fluffyConnections](connection_context& context, nodetool::peerid_type peer_id, uint32_t support_flags)
|
|
|
|
m_p2p->for_each_connection([this, &exclude_context, &fullConnections, &fluffyConnections](connection_context& context, nodetool::peerid_type peer_id, uint32_t support_flags)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (peer_id && exclude_context.m_connection_id != context.m_connection_id)
|
|
|
|
if (peer_id && exclude_context.m_connection_id != context.m_connection_id && context.m_remote_address.get_zone() == epee::net_utils::zone::public_)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(m_core.fluffy_blocks_enabled() && (support_flags & P2P_SUPPORT_FLAG_FLUFFY_BLOCKS))
|
|
|
|
if(m_core.fluffy_blocks_enabled() && (support_flags & P2P_SUPPORT_FLAG_FLUFFY_BLOCKS))
|
|
|
|
{
|
|
|
|
{
|
|
|
|