From ac42de6cfbadc5fcf1b50b674fcaa9965ffb4fdf Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 31 Jul 2016 22:10:37 -0700 Subject: [PATCH] fullnode: remove bullshit scanning algorithm. --- lib/bcoin/fullnode.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/bcoin/fullnode.js b/lib/bcoin/fullnode.js index c983c84f..02d06e1a 100644 --- a/lib/bcoin/fullnode.js +++ b/lib/bcoin/fullnode.js @@ -451,19 +451,6 @@ Fullnode.prototype.getWallet = function getWallet(id, callback) { return this.walletdb.get(id, callback); }; -/** - * Scan an HD wallet and allocate addresses according to history. - * @param {Wallet} wallet - * @param {Function} callback - */ - -Fullnode.prototype.scanWallet = function scanWallet(wallet, callback) { - if (!this.chain.db.options.indexTX || !this.chain.db.options.indexAddress) - return callback(new Error('Addresses not indexed.')); - - wallet.scan(this.getTXByAddress.bind(this), callback); -}; - /** * Retrieve a block from the chain database. * @param {Hash} hash