Update sanity.php

This commit is contained in:
arionum
2018-06-19 22:09:36 +03:00
committed by GitHub
parent 81bd36d2c5
commit 3a4aaf973c

View File

@@ -201,7 +201,7 @@ if ($total_peers == 0 && $_config['testnet'] == false) {
// we can't connect to arionum.com
if (count($f) < 2) {
@unlink("tmp/sanity-lock");
die("Could nto connect to arionum.com! Will try later!\n");
die("Could not connect to arionum.com! Will try later!\n");
}
foreach ($f as $peer) {
//peer with all until max_peers, this will ask them to send a peering request to our peer.php where we add their peer to the db.
@@ -236,7 +236,7 @@ if ($total_peers == 0 && $_config['testnet'] == false) {
$r = $db->run("SELECT id,hostname FROM peers WHERE reserve=0 AND blacklisted<UNIX_TIMESTAMP()");
$total_peers = count($r);
if ($total_peers == 0) {
// something went wrong, could nto add any peers -> exit
// something went wrong, could not add any peers -> exit
@unlink("tmp/sanity-lock");
die("Could not peer to any peers! Please check internet connectivity!\n");
}