From 4d06595b856f3f74222766cfc6834839b26af7ac Mon Sep 17 00:00:00 2001 From: kanoi Date: Sat, 1 Nov 2014 17:32:17 +1100 Subject: [PATCH] php - show confirm number on blocks page --- pool/page_blocks.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pool/page_blocks.php b/pool/page_blocks.php index 9110e5aa..b8487b48 100644 --- a/pool/page_blocks.php +++ b/pool/page_blocks.php @@ -69,12 +69,23 @@ function doblocks($data, $user) else $row = 'odd'; + $hi = $ans['height:'.$i]; + $hifld = "$blink$hi>$hi"; + $ex = ''; $stat = $ans['status:'.$i]; if ($stat == 'Orphan') $ex = 's'; if ($stat == '1-Confirm') - $stat = 'Conf'; + { + if (isset($data['info']['lastheight'])) + { + $conf = 1 + $data['info']['lastheight'] - $hi; + $stat = '+'.$conf.' Confirms'; + } + else + $stat = 'Conf'; + } $stara = ''; $starp = ''; @@ -86,9 +97,6 @@ function doblocks($data, $user) $starp = '*'; } - $hi = $ans['height:'.$i]; - $hifld = "$blink$hi>$hi"; - $diffacc = $ans['diffacc:'.$i]; $acc = number_format($diffacc, 0);