This commit is contained in:
Arionum
2018-05-18 15:59:40 +03:00
parent 58a815e068
commit e1d52c0e31

View File

@@ -40,8 +40,7 @@ if($q=="info"){
$diff=$block->difficulty();
$current=$block->current();
$res=array("difficulty"=>$diff, "block"=>$current['id'], "height"=>$current['height']);
if($_config['testnet']) $res['testnet']=true;
$res=array("difficulty"=>$diff, "block"=>$current['id'], "height"=>$current['height'], "testnet"=>$_config['testnet']);
api_echo($res);
exit;
} elseif($q=="submitNonce"){