Merge pull request #1410 from TheSerapher/issue-1407

[FIX] Anon worker_name on getblocksfound API
This commit is contained in:
Sebastian Grewe 2014-01-14 08:10:43 -08:00
commit a2f3490de4

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