sanity stuck on 0 peer

This commit is contained in:
Arionum
2018-01-08 16:16:46 +02:00
parent e37c560df1
commit 0446ab6374

View File

@@ -150,7 +150,10 @@ if($total_peers==0){
}
$r=$db->run("SELECT id,hostname FROM peers WHERE reserve=0 AND blacklisted<UNIX_TIMESTAMP()");
$total_peers=count($r);
if($total_peers==0) die("Could not peer to any peers! Please check internet connectivity!\n");
if($total_peers==0){
@unlink("tmp/sanity-lock");
die("Could not peer to any peers! Please check internet connectivity!\n");
}
}
@@ -355,4 +358,4 @@ if($_config['sanity_recheck_blocks']>0){
@unlink("tmp/sanity-lock");
?>
?>