walletdb: lookahead of 10.
This commit is contained in:
parent
4cb11da4cf
commit
4e1709e9b6
@ -67,7 +67,7 @@ function Account(db, options) {
|
||||
this.receiveDepth = 0;
|
||||
this.changeDepth = 0;
|
||||
this.nestedDepth = 0;
|
||||
this.lookahead = 20;
|
||||
this.lookahead = 10;
|
||||
this.accountKey = null;
|
||||
this.keys = [];
|
||||
|
||||
|
||||
@ -1863,11 +1863,6 @@ Wallet.prototype.syncOutputDepth = co(function* syncOutputDepth(details) {
|
||||
if (!details)
|
||||
return derived;
|
||||
|
||||
if (this.db.options.safeSync) {
|
||||
if (details.height === -1)
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < details.outputs.length; i++) {
|
||||
path = details.outputs[i].path;
|
||||
|
||||
|
||||
@ -275,12 +275,11 @@ co.spawn(function* () {
|
||||
yield patchPathMaps();
|
||||
yield batch.write();
|
||||
yield db.close();
|
||||
yield updateLookahead();
|
||||
yield unstate();
|
||||
// yield updateLookahead();
|
||||
// yield unstate();
|
||||
}).then(function() {
|
||||
console.log('Migration complete.');
|
||||
console.log('Rescan is required...');
|
||||
console.log('Start bcoin with `--start-height=[wallet-creation-height]`');
|
||||
console.log('for a fast sync.');
|
||||
console.log('Start bcoin with `--start-height=[wallet-creation-height]`.');
|
||||
process.exit(0);
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user