node: rescan before zap.
This commit is contained in:
parent
7f22223436
commit
f57867f929
@ -245,12 +245,12 @@ Fullnode.prototype._open = co(function* open() {
|
||||
// Ensure primary wallet.
|
||||
yield this.openWallet();
|
||||
|
||||
// Zap stale txs.
|
||||
yield this.walletdb.zap(72 * 3600);
|
||||
|
||||
// Rescan for any missed transactions.
|
||||
yield this.rescan();
|
||||
|
||||
// Zap stale txs.
|
||||
yield this.walletdb.zap(72 * 3600);
|
||||
|
||||
// Rebroadcast pending transactions.
|
||||
yield this.resend();
|
||||
|
||||
|
||||
@ -168,12 +168,12 @@ SPVNode.prototype._open = co(function* open(callback) {
|
||||
// Load bloom filter.
|
||||
yield this.openFilter();
|
||||
|
||||
// Zap stale txs.
|
||||
yield this.walletdb.zap(72 * 3600);
|
||||
|
||||
// Rescan for any missed transactions.
|
||||
yield this.rescan();
|
||||
|
||||
// Zap stale txs.
|
||||
yield this.walletdb.zap(72 * 3600);
|
||||
|
||||
// Rebroadcast pending transactions.
|
||||
yield this.resend();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user