testnet mining info
This commit is contained in:
5
mine.php
5
mine.php
@@ -39,7 +39,10 @@ if($q=="info"){
|
|||||||
// provides the mining info to the miner
|
// provides the mining info to the miner
|
||||||
$diff=$block->difficulty();
|
$diff=$block->difficulty();
|
||||||
$current=$block->current();
|
$current=$block->current();
|
||||||
api_echo(array("difficulty"=>$diff, "block"=>$current['id'], "height"=>$current['height']));
|
|
||||||
|
$res=array("difficulty"=>$diff, "block"=>$current['id'], "height"=>$current['height']);
|
||||||
|
if($_config['testnet']) $res['testnet']=true;
|
||||||
|
api_echo($res);
|
||||||
exit;
|
exit;
|
||||||
} elseif($q=="submitNonce"){
|
} elseif($q=="submitNonce"){
|
||||||
// in case the blocks are syncing, reject all
|
// in case the blocks are syncing, reject all
|
||||||
|
|||||||
Reference in New Issue
Block a user