peer blacklist fix

This commit is contained in:
admin@arionum.com
2019-09-18 05:23:25 +03:00
parent bb22e45d40
commit 67e02cb498

View File

@@ -822,7 +822,7 @@ if ($_config['masternode']==true&&!empty($_config['masternode_public_key'])&&!em
if ($f) { if ($f) {
$res=json_decode($f, true); $res=json_decode($f, true);
$res=$res['data']; $res=$res['data'];
if ($res['height']<$current['height']-360) { if ($res['height']<$current['height']-360) {
$blacklist=1; $blacklist=1;
} }
echo "Masternode Height: ".$res['height']."\n"; echo "Masternode Height: ".$res['height']."\n";
@@ -878,4 +878,4 @@ if ($_config['masternode']==true&&!empty($_config['masternode_public_key'])&&!em
_log("Finishing sanity"); _log("Finishing sanity");
@unlink(SANITY_LOCK_PATH); @unlink(SANITY_LOCK_PATH);