From 79a5fd4e2839ef6c68bb2d742755202fd3777c9c Mon Sep 17 00:00:00 2001 From: "admin@arionum.com" Date: Sat, 13 Jun 2020 02:25:18 +0300 Subject: [PATCH] automatic forking resolution typo --- sanity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanity.php b/sanity.php index 920244c..7320e34 100755 --- a/sanity.php +++ b/sanity.php @@ -468,7 +468,7 @@ echo "Current block: $current[height]\n"; // if this is the node that's ahead, and other nodes are not catching up, pop 200 -if($largest_height-$most_common_height>100&&$largest_size==1&&$current['id']==$largest_height){ +if($largest_height-$most_common_height>100&&$largest_size==1&&$current['id']==$largest_height_block){ _log("Current node is alone on the chain and over 100 blocks ahead. Poping 200 blocks."); $db->run("UPDATE config SET val=1 WHERE cfg='sanity_sync'"); $block->pop(200);