Skip to content

Commit

Permalink
txsCount fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemKo7v committed Dec 14, 2017
1 parent 4065772 commit eccd448
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions service/lib/ethplorer.php
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,13 @@ public function getTokens($updateCache = false){
if(isset($aResult[$address]['symbol'])){
$aResult[$address]['symbol'] = htmlspecialchars($aResult[$address]['symbol']);
}

$cursor = $this->oMongo->find('addressCache', array("address" => $address));
$aCachedData = false;
foreach($cursor as $aCachedData) break;
if(false !== $aCachedData){
$aResult[$address]['txsCount'] = $aCachedData['txsCount'];
}
}
if(isset($aResult['0x0000000000000000000000000000000000000000'])){
unset($aResult['0x0000000000000000000000000000000000000000']);
Expand Down

0 comments on commit eccd448

Please sign in to comment.