excluded genesis block address from rich list

This commit is contained in:
Akinwale Ariwodola 2017-07-04 03:26:56 +01:00
parent f54b8366a0
commit 70291f6260

View file

@ -494,7 +494,8 @@ class MainController extends AppController {
public function stats() { public function stats() {
$this->loadModel('Addresses'); $this->loadModel('Addresses');
$richList = $this->Addresses->find()->order(['Balance' => 'DESC'])->limit(500)->toArray(); // exclude bHW58d37s1hBjj3wPBkn5zpCX3F8ZW3uWf (genesis block)
$richList = $this->Addresses->find()->where(['Address <>' => 'bHW58d37s1hBjj3wPBkn5zpCX3F8ZW3uWf'])->order(['Balance' => 'DESC'])->limit(500)->toArray();
$priceRate = 0; $priceRate = 0;
$priceInfo = json_decode($this->redis->get(self::lbcPriceKey)); $priceInfo = json_decode($this->redis->get(self::lbcPriceKey));