Browse Source
consistency fix - don't request tx stats in regtest
fix-133-memory-crash
Dan Janosik
6 years ago
No known key found for this signature in database
GPG Key ID: C6F8CE9FFDB2CED2
1 changed files with
3 additions and
1 deletions
-
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; |
|
|
|