auto resync fix
This commit is contained in:
@@ -620,7 +620,7 @@ if ($current['height'] < $largest_height && $largest_height > 1) {
|
||||
if ($block_parse_failed==true||$argv[1]=="resync") {
|
||||
$last_resync=$db->single("SELECT val FROM config WHERE cfg='last_resync'");
|
||||
if ($last_resync<time()-(3600*24)||$argv[1]=="resync") {
|
||||
if ((($current['date']<time()-(3600*72))&&$_config['auto_resync'])!==false||$argv[1]=="resync") {
|
||||
if (((($current['date']<time()-(3600*72))&&$_config['auto_resync'])!==false)||$argv[1]=="resync") {
|
||||
$db->run("SET foreign_key_checks=0;");
|
||||
$tables = ["accounts", "transactions", "mempool", "masternode","blocks"];
|
||||
foreach ($tables as $table) {
|
||||
|
||||
Reference in New Issue
Block a user