bitcoind: fix txid pagination

This commit is contained in:
Braydon Fuller 2016-03-25 15:09:44 -04:00
parent b69d848352
commit af573b765b
1 changed files with 1 additions and 4 deletions

View File

@ -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;
}