From f57867f929bb739773c357cba8e283c7819ad2b3 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 5 Oct 2016 19:55:55 -0700 Subject: [PATCH] node: rescan before zap. --- lib/node/fullnode.js | 6 +++--- lib/node/spvnode.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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();