From d6320b390974528500f1a01bf46801ba2009f803 Mon Sep 17 00:00:00 2001 From: Dan Janosik Date: Thu, 1 Mar 2018 15:49:30 -0500 Subject: [PATCH] remove some getinfo calls that i missed. --- routes/baseActionsRouter.js | 6 +++--- views/node-info.pug | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/routes/baseActionsRouter.js b/routes/baseActionsRouter.js index ffb42cf..0b7e087 100644 --- a/routes/baseActionsRouter.js +++ b/routes/baseActionsRouter.js @@ -149,13 +149,13 @@ router.get("/blocks", function(req, res) { res.locals.sort = sort; res.locals.paginationBaseUrl = "/blocks"; - rpcApi.getInfo().then(function(getinfo) { - res.locals.blockCount = getinfo.blocks; + rpcApi.getBlockchainInfo().then(function(getblockchaininfo) { + res.locals.blockCount = getblockchaininfo.blocks; res.locals.blockOffset = offset; var blockHeights = []; if (sort == "desc") { - for (var i = (getinfo.blocks - offset); i > (getinfo.blocks - offset - limit); i--) { + for (var i = (getblockchaininfo.blocks - offset); i > (getblockchaininfo.blocks - offset - limit); i--) { blockHeights.push(i); } } else { diff --git a/views/node-info.pug b/views/node-info.pug index c200871..db9342a 100644 --- a/views/node-info.pug +++ b/views/node-info.pug @@ -15,7 +15,7 @@ block content if (false) pre - code #{JSON.stringify(getinfo, null, 4)} + code #{JSON.stringify(getblockchaininfo, null, 4)} if (true) table(class="table")