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