diff --git a/src/Controller/MainController.php b/src/Controller/MainController.php index afa7757..aa52061 100644 --- a/src/Controller/MainController.php +++ b/src/Controller/MainController.php @@ -292,7 +292,7 @@ class MainController extends AppController { $page = intval($this->request->query('page')); $conn = ConnectionManager::get('default'); - $stmt = $conn->execute('SELECT COUNT(id) AS Total FROM Blocks'); + $stmt = $conn->execute('SELECT COUNT(id) AS Total FROM block'); $count = $stmt->fetch(\PDO::FETCH_OBJ); $numBlocks = $count->Total; diff --git a/src/Template/Main/blocks.ctp b/src/Template/Main/blocks.ctp index 17ff11c..442b897 100644 --- a/src/Template/Main/blocks.ctp +++ b/src/Template/Main/blocks.ctp @@ -181,10 +181,10 @@ - Height ?> - d0ifficulty, 8, '.', '') ?> + height ?> + difficulty, 8, '.', '') ?> height - $block->height) + 1), 0, '', ',') ?> - transaction_hashes)) ?> + transaction_hashes)) ?> block_size / 1024, 2) . 'KB' ?> nonce ?> block_time)->format('d M Y H:i:s') ?> UTC