From 9dd74285f72f0b8dabbb1a0ec048e1495b896059 Mon Sep 17 00:00:00 2001 From: Arionum Date: Sat, 18 Aug 2018 01:55:18 +0300 Subject: [PATCH] limit peers per sanity --- sanity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanity.php b/sanity.php index fa91f98..537dec6 100755 --- a/sanity.php +++ b/sanity.php @@ -310,6 +310,7 @@ if ($total_peers == 0 && $_config['testnet'] == false) { } // contact all the active peers + $i = 0; foreach ($r as $x) { _log("Contacting peer $x[hostname]"); $url = $x['hostname']."/peer.php?q="; @@ -325,7 +326,6 @@ if($_config['get_more_peers']==true){ ); continue; } - $i = 0; foreach ($data as $peer) { // store the hostname as md5 hash, for easier checking $peer['hostname'] = san_host($peer['hostname']);