comment updates
This commit is contained in:
parent
06b0e108d5
commit
ad39b6337c
@ -68,7 +68,7 @@ module.exports = function transactionAPI(router) {
|
|||||||
const pageNum = parseInt(req.query.pageNum) || 0;
|
const pageNum = parseInt(req.query.pageNum) || 0;
|
||||||
const rangeStart = pageNum * MAX_TXS;
|
const rangeStart = pageNum * MAX_TXS;
|
||||||
const rangeEnd = rangeStart + MAX_TXS;
|
const rangeEnd = rangeStart + MAX_TXS;
|
||||||
// get txs for blockhash
|
// get txs for blockhash, start with best height to calc confirmations
|
||||||
if (req.query.block) {
|
if (req.query.block) {
|
||||||
db.blocks.getBestHeight(
|
db.blocks.getBestHeight(
|
||||||
(err, block) => {
|
(err, block) => {
|
||||||
@ -121,7 +121,7 @@ module.exports = function transactionAPI(router) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else if (req.query.address) {
|
} else if (req.query.address) {
|
||||||
// Get txs by address
|
// Get txs by address, start with best height to calc confirmations
|
||||||
db.blocks.getBestHeight(
|
db.blocks.getBestHeight(
|
||||||
(err, block) => {
|
(err, block) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user