Browse Source

minor todo

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

8
routes/baseActionsRouter.js

@ -506,7 +506,6 @@ router.get("/block/:blockHash", function(req, res, next) {
res.locals.offset = offset;
res.locals.paginationBaseUrl = "/block/" + blockHash;
// TODO handle RPC error
coreApi.getBlockByHashWithTransactions(blockHash, limit, offset).then(function(result) {
res.locals.result.getblock = result.getblock;
res.locals.result.transactions = result.transactions;
@ -514,6 +513,13 @@ router.get("/block/:blockHash", function(req, res, next) {
res.render("block");
next();
}).catch(function(err) {
res.locals.userMessage = "Error getting block data";
res.render("block");
next();
});
});

Loading…
Cancel
Save