Dan Janosik
6 years ago
No known key found for this signature in database
GPG Key ID: C6F8CE9FFDB2CED2
1 changed files with
8 additions and
2 deletions
-
routes/baseActionsRouter.js
|
@ -506,7 +506,6 @@ router.get("/block/:blockHash", function(req, res, next) { |
|
|
res.locals.offset = offset; |
|
|
res.locals.offset = offset; |
|
|
res.locals.paginationBaseUrl = "/block/" + blockHash; |
|
|
res.locals.paginationBaseUrl = "/block/" + blockHash; |
|
|
|
|
|
|
|
|
// TODO handle RPC error
|
|
|
|
|
|
coreApi.getBlockByHashWithTransactions(blockHash, limit, offset).then(function(result) { |
|
|
coreApi.getBlockByHashWithTransactions(blockHash, limit, offset).then(function(result) { |
|
|
res.locals.result.getblock = result.getblock; |
|
|
res.locals.result.getblock = result.getblock; |
|
|
res.locals.result.transactions = result.transactions; |
|
|
res.locals.result.transactions = result.transactions; |
|
@ -514,6 +513,13 @@ router.get("/block/:blockHash", function(req, res, next) { |
|
|
|
|
|
|
|
|
res.render("block"); |
|
|
res.render("block"); |
|
|
|
|
|
|
|
|
|
|
|
next(); |
|
|
|
|
|
|
|
|
|
|
|
}).catch(function(err) { |
|
|
|
|
|
res.locals.userMessage = "Error getting block data"; |
|
|
|
|
|
|
|
|
|
|
|
res.render("block"); |
|
|
|
|
|
|
|
|
next(); |
|
|
next(); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|