automatic forking resolution typo

This commit is contained in:
admin@arionum.com
2020-06-13 02:25:18 +03:00
parent 0e4da0cb11
commit 79a5fd4e28

View File

@@ -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 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."); _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'"); $db->run("UPDATE config SET val=1 WHERE cfg='sanity_sync'");
$block->pop(200); $block->pop(200);