explorer: better check of block PoS type

This commit is contained in:
Tanguy Pruvot 2018-06-11 04:39:26 +02:00
parent 6d52259c11
commit 7afdd17e5d

View file

@ -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';