From 7afdd17e5dbd968c4c21aebef7ccb106886075b0 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Mon, 11 Jun 2018 04:39:26 +0200 Subject: [PATCH] explorer: better check of block PoS type --- web/yaamp/modules/explorer/coin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/yaamp/modules/explorer/coin.php b/web/yaamp/modules/explorer/coin.php index e4db45e..ce724c7 100644 --- a/web/yaamp/modules/explorer/coin.php +++ b/web/yaamp/modules/explorer/coin.php @@ -68,7 +68,7 @@ for($i = $start; $i > max(1, $start-21); $i--) $type = ''; if (arraySafeval($block,'nonce',0) > 0) $type = 'PoW'; 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 if ($type == '' && $coin->symbol=='ZEC') $type = 'PoW';