diff --git a/lib/node/fullnode.js b/lib/node/fullnode.js index 00c73dc7..eaaf1ccb 100644 --- a/lib/node/fullnode.js +++ b/lib/node/fullnode.js @@ -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(); diff --git a/lib/node/spvnode.js b/lib/node/spvnode.js index afaf05bf..fd0bf7e7 100644 --- a/lib/node/spvnode.js +++ b/lib/node/spvnode.js @@ -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();