Display fixed or block reward in findblock cron

Fixes #76
This commit is contained in:
Sebastian Grewe 2013-06-25 08:57:40 +02:00
parent 2204b6d9f3
commit 8dbc8c6a9b

View File

@ -48,6 +48,7 @@ if (empty($aTransactions['transactions'])) {
foreach ($aTransactions['transactions'] as $iIndex => $aData) {
if ( $aData['category'] == 'generate' || $aData['category'] == 'immature' ) {
$aBlockInfo = $bitcoin->query('getblock', $aData['blockhash']);
$config['reward_type'] == 'block' ? $aData['amount'] = $aData['amount'] : $aData['amount'] = $config['reward'];
$aData['height'] = $aBlockInfo['height'];
$aData['difficulty'] = $aBlockInfo['difficulty'];
verbose(substr($aData['blockhash'], 0, 15) . "...\t" .