From e517a7a9f79df82518939ac9030c8f8351105e83 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 15 Aug 2016 20:10:33 -0700 Subject: [PATCH] txdb: fix iterators. --- lib/bcoin/txdb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bcoin/txdb.js b/lib/bcoin/txdb.js index 798c3b47..98d7382d 100644 --- a/lib/bcoin/txdb.js +++ b/lib/bcoin/txdb.js @@ -1333,7 +1333,7 @@ TXDB.prototype.getHistoryHashes = function getHistoryHashes(account, callback) { return key[1]; } key = layout.tt(key); - return key[0]; + return key; } }, callback); }; @@ -1363,7 +1363,7 @@ TXDB.prototype.getUnconfirmedHashes = function getUnconfirmedHashes(account, cal return key[1]; } key = layout.pp(key); - return key[0]; + return key; } }, callback); };