sanity stuck on 0 peer
This commit is contained in:
@@ -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");
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user