20block diff

This commit is contained in:
Arionum
2018-08-13 03:03:07 +03:00
parent 971c385042
commit 8be4270e16

View File

@@ -270,8 +270,8 @@ $this->reset_fails_masternodes($mn_winner, $height, $hash);
$blks=0;
$total_time=0;
$blk = $db->run("SELECT `date`, height FROM blocks ORDER by height DESC LIMIT 40");
for ($i=0;$i<39;$i++) {
$blk = $db->run("SELECT `date`, height FROM blocks ORDER by height DESC LIMIT 20");
for ($i=0;$i<19;$i++) {
$ctype=$blk[$i+1]['height']%2;
$time=$blk[$i]['date']-$blk[$i+1]['date'];
if ($type!=$ctype) {