[FIX] Anon worker_name on getblocksfound API

Forgot that.
This commit is contained in:
Sebastian Grewe 2014-01-14 17:10:08 +01:00
parent 98f2a2d61a
commit 58e23975b7

View File

@ -15,8 +15,10 @@ $setting->getValue('statistics_block_count') ? $iLimit = $setting->getValue('sta
// Fetch latest blocks found, honor anon flag
$aBlocks = $statistics->getBlocksFound($iLimit);
foreach ($aBlocks as $iKey => $aBlockData) {
if ($aBlockData['is_anonymous'] == 1)
if ($aBlockData['is_anonymous'] == 1) {
$aBlocks[$iKey]['finder'] = 'anonymous';
$aBlocks[$iKey]['worker_name'] = 'anonymous.anon';
}
}
// Output JSON format