difficulty fix

This commit is contained in:
Arionum
2018-01-09 18:44:43 +02:00
parent 900a78956e
commit 2b63e298d0

View File

@@ -112,6 +112,9 @@ public function difficulty($height=0){
} else {
$dif=$current['difficulty'];
}
if(strpos($dif,'.')!==false){
$dif=substr($dif,0,strpos($dif,'.'));
}
if($dif<1000) $dif=1000;
if($dif>9223372036854775800) $dif=9223372036854775800;