mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
explorer: better check of block PoS type
This commit is contained in:
parent
6d52259c11
commit
7afdd17e5d
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ for($i = $start; $i > max(1, $start-21); $i--)
|
||||||
$type = '';
|
$type = '';
|
||||||
if (arraySafeval($block,'nonce',0) > 0) $type = 'PoW';
|
if (arraySafeval($block,'nonce',0) > 0) $type = 'PoW';
|
||||||
else if (isset($block['auxpow'])) $type = 'Aux';
|
else if (isset($block['auxpow'])) $type = 'Aux';
|
||||||
else if (isset($block['mint']) || arraySafeVal($block,'flags') == 'proof-of-stake') $type = 'PoS';
|
else if (isset($block['mint']) || strstr(arraySafeVal($block,'flags',''), 'proof-of-stake')) $type = 'PoS';
|
||||||
|
|
||||||
// nonce 256bits
|
// nonce 256bits
|
||||||
if ($type == '' && $coin->symbol=='ZEC') $type = 'PoW';
|
if ($type == '' && $coin->symbol=='ZEC') $type = 'PoW';
|
||||||
|
|
Loading…
Add table
Reference in a new issue