Skip to content

Commit 21702a0

Browse files
committed
getEtherTotalIn fix bug with absent cache of HL addresses
1 parent 381c0a3 commit 21702a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/lib/ethplorer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ public function getEtherTotalIn($address, $updateCache = FALSE, $parityOnly = FA
532532
}
533533
if($balance && isset($balance['balance']) && isset($balance['totalIn'])){
534534
$result = $balance['totalIn'];
535-
}else{
535+
}elseif(!$parityOnly){
536536
// Get from parity
537537
$aResult = $this->oMongo->aggregate('operations2', array(
538538
array('$match' => array("to" => $address, "isEth" => true)),

0 commit comments

Comments
 (0)