From 2c3845bbbdb7a3fc1da0741cef5bfd12a504f765 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Fri, 30 May 2014 10:25:32 -0500 Subject: [PATCH] Prevent full handshake rescans on btcd reconnect. If a rescan fails (for example, due to a disconnected btcd) in the btcd handshake, the last block height from a rescanprogress notification should be used for the next rescan job on next wallet connect. Previously, this rescan would always start at the earliest block height for any wallet address if the transaction store could not be read at wallet startup. This change unsets the boolean flag which would cause a full rescan at next connect when a rescan progress notification is received and a partial sync height is written. Fixes #87. --- acctmgr.go | 1 + 1 file changed, 1 insertion(+) diff --git a/acctmgr.go b/acctmgr.go index 6000309..1e5892a 100644 --- a/acctmgr.go +++ b/acctmgr.go @@ -394,6 +394,7 @@ func (am *AccountManager) rescanListener() { continue } } + acct.fullRescan = false am.ds.ScheduleWalletWrite(acct) err := am.ds.FlushAccount(acct) if err != nil {