8000 Temoprary fix · etherscan-io/Ethplorer@a16cbbd · GitHub
[go: up one dir, main page]

Skip to content

Commit a16cbbd

Browse files
committed
Temoprary fix
1 parent 853ac2e commit a16cbbd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

service/lib/ethplorer.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2796,8 +2796,15 @@ public function getAddressPriceHistoryGrouped($address, $updateCache = FALSE, $w
27962796
$result = false;
27972797
$updateCache = false;
27982798
}
2799-
2799+
28002800
if(FALSE === $result || $updateCache){
2801+
2802+
$opCount = $this->countOperations($address, FALSE);
2803+
if($opCount >= 10000){
2804+
evxProfiler::checkpoint('getAddressPriceHistoryGrouped', 'FINISH', 'Address has >10000 operations, skip');
2805+
return FALSE;
2806+
}
2807+
28012808
$aSearch = array('from', 'to', 'address');
28022809
$aTypes = array('transfer', 'issuance', 'burn', 'mint');
28032810
$aResult = array();

0 commit comments

Comments
 (0)
0