hf extend

This commit is contained in:
Arionum
2018-08-13 04:56:01 +03:00
parent 547cac4afb
commit 5ca54479a7

View File

@@ -494,7 +494,7 @@ if ($current['height'] < $largest_height && $largest_height > 1) {
$last_good = $i; $last_good = $i;
} }
} }
if ($last_good==$current['height']-1&&$last_good%3==2) { if ($last_good==$current['height']-1) {
$block->pop(1); $block->pop(1);
} }
// if last 10 blocks are good, verify all the blocks // if last 10 blocks are good, verify all the blocks
@@ -510,7 +510,7 @@ if ($current['height'] < $largest_height && $largest_height > 1) {
} }
// check if the block mining data is correct // check if the block mining data is correct
for ($i = $last_good + 1; $i <= $largest_height; $i++) { for ($i = $last_good + 1; $i <= $largest_height; $i++) {
if (($i-1)%3==2) { if (($i-1)%3==2&&$cblock[$i - 1]['height']<80460) {
continue; continue;
} }
if (!$block->mine( if (!$block->mine(