From af573b765babb3127ed9e1cb0941be74c70511f1 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Fri, 25 Mar 2016 15:09:44 -0400 Subject: [PATCH] bitcoind: fix txid pagination --- lib/services/bitcoind.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/services/bitcoind.js b/lib/services/bitcoind.js index b6cd6fdf..95bada78 100644 --- a/lib/services/bitcoind.js +++ b/lib/services/bitcoind.js @@ -515,12 +515,9 @@ Bitcoin.prototype._getAddressStrings = function(addresses) { }; Bitcoin.prototype._paginateTxids = function(fullTxids, from, to) { - var totalCount = fullTxids.length; var txids; if (from >= 0 && to >= 0) { - var fromOffset = totalCount - from; - var toOffset = totalCount - to; - txids = fullTxids.slice(toOffset, fromOffset); + txids = fullTxids.slice(from, to); } else { txids = fullTxids; }