fullnode: remove bullshit scanning algorithm.
This commit is contained in:
parent
1d971b0de0
commit
ac42de6cfb
@ -451,19 +451,6 @@ Fullnode.prototype.getWallet = function getWallet(id, callback) {
|
|||||||
return this.walletdb.get(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.
|
* Retrieve a block from the chain database.
|
||||||
* @param {Hash} hash
|
* @param {Hash} hash
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user