From 58a815e068ea983941fb706e1b70893a09e562c2 Mon Sep 17 00:00:00 2001 From: Arionum Date: Fri, 18 May 2018 15:50:19 +0300 Subject: [PATCH] testnet mining info --- mine.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mine.php b/mine.php index 1a1ae39..afe455d 100755 --- a/mine.php +++ b/mine.php @@ -39,7 +39,10 @@ if($q=="info"){ // provides the mining info to the miner $diff=$block->difficulty(); $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; } elseif($q=="submitNonce"){ // in case the blocks are syncing, reject all