fullnode: remove bullshit scanning algorithm.

This commit is contained in:
Christopher Jeffrey 2016-07-31 22:10:37 -07:00
parent 1d971b0de0
commit ac42de6cfb
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

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