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.
|
// Ensure primary wallet.
|
||||||
yield this.openWallet();
|
yield this.openWallet();
|
||||||
|
|
||||||
// Zap stale txs.
|
|
||||||
yield this.walletdb.zap(72 * 3600);
|
|
||||||
|
|
||||||
// Rescan for any missed transactions.
|
// Rescan for any missed transactions.
|
||||||
yield this.rescan();
|
yield this.rescan();
|
||||||
|
|
||||||
|
// Zap stale txs.
|
||||||
|
yield this.walletdb.zap(72 * 3600);
|
||||||
|
|
||||||
// Rebroadcast pending transactions.
|
// Rebroadcast pending transactions.
|
||||||
yield this.resend();
|
yield this.resend();
|
||||||
|
|
||||||
|
|||||||
@ -168,12 +168,12 @@ SPVNode.prototype._open = co(function* open(callback) {
|
|||||||
// Load bloom filter.
|
// Load bloom filter.
|
||||||
yield this.openFilter();
|
yield this.openFilter();
|
||||||
|
|
||||||
// Zap stale txs.
|
|
||||||
yield this.walletdb.zap(72 * 3600);
|
|
||||||
|
|
||||||
// Rescan for any missed transactions.
|
// Rescan for any missed transactions.
|
||||||
yield this.rescan();
|
yield this.rescan();
|
||||||
|
|
||||||
|
// Zap stale txs.
|
||||||
|
yield this.walletdb.zap(72 * 3600);
|
||||||
|
|
||||||
// Rebroadcast pending transactions.
|
// Rebroadcast pending transactions.
|
||||||
yield this.resend();
|
yield this.resend();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user