Browse Source

consistency fix - don't request tx stats in regtest

fix-133-memory-crash
Dan Janosik 6 years ago
parent
commit
3d31bc01ba
No known key found for this signature in database GPG Key ID: C6F8CE9FFDB2CED2
  1. 2
      routes/baseActionsRouter.js

2
routes/baseActionsRouter.js

@ -71,7 +71,9 @@ router.get("/", function(req, res, next) {
}
}
if (getblockchaininfo.chain !== 'regtest') {
promises.push(coreApi.getChainTxStats(getblockchaininfo.blocks - 1));
}
coreApi.getBlocksByHeight(blockHeights).then(function(latestBlocks) {
res.locals.latestBlocks = latestBlocks;

Loading…
Cancel
Save