walletdb: lookahead of 10.

This commit is contained in:
Christopher Jeffrey 2016-11-07 22:11:32 -08:00
parent 4cb11da4cf
commit 4e1709e9b6
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
3 changed files with 4 additions and 10 deletions

View File

@ -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 = [];

View File

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

View File

@ -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);
});