From ab9561e90e397b4d02b0ee708ed85f0773ef4eae Mon Sep 17 00:00:00 2001 From: Arionum Date: Mon, 5 Feb 2018 16:02:12 +0200 Subject: [PATCH] block height mining --- mine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mine.php b/mine.php index 288368f..8d3e13f 100755 --- a/mine.php +++ b/mine.php @@ -35,7 +35,7 @@ if($_config['testnet']==false&&!in_array($ip,$_config['allowed_hosts'])) api_err if($q=="info"){ $diff=$block->difficulty(); $current=$block->current(); - api_echo(array("difficulty"=>$diff, "block"=>$current['id'])); + api_echo(array("difficulty"=>$diff, "block"=>$current['id'], "height"=>$current['height'])); exit; } elseif($q=="submitNonce"){ if($_config['sanity_sync']==1) api_err("sanity-sync");