Skip to content

Commit 74c7473

Browse files
committed
Do cache unknown transactions
1 parent 081126b commit 74c7473

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

service/lib/ethplorer.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,9 @@ public function getTransactionDetails($hash){
224224
}
225225
}
226226
}
227-
$this->oCache->save($cache, $result);
227+
if($result['tx']){
228+
$this->oCache->save($cache, $result);
229+
}
228230
}
229231
if(is_array($result) && is_array($result['tx'])){
230232
$result['tx']['confirmations'] = $this->oCache->get('lastBlock') - $result['tx']['blockNumber'] + 1;

0 commit comments

Comments
 (0)