diff --git a/routes/baseActionsRouter.js b/routes/baseActionsRouter.js index 362b6c6..35e083d 100644 --- a/routes/baseActionsRouter.js +++ b/routes/baseActionsRouter.js @@ -71,7 +71,9 @@ router.get("/", function(req, res, next) { } } - promises.push(coreApi.getChainTxStats(getblockchaininfo.blocks - 1)); + if (getblockchaininfo.chain !== 'regtest') { + promises.push(coreApi.getChainTxStats(getblockchaininfo.blocks - 1)); + } coreApi.getBlocksByHeight(blockHeights).then(function(latestBlocks) { res.locals.latestBlocks = latestBlocks;