Branch: refs/heads/master
Home: https://github.com/conformal/btcwallet
Commit: 089fa9de188e3c875141dc505e6d3b0aceba9c99
https://github.com/conformal/btcwallet/commit/089fa9de188e3c875141dc505e6d3b0aceba9c99
Author: Josh Rickmar <[email protected]>
Date: 2014-03-17 (Mon, 17 Mar 2014)
Changed paths:
M account.go
M ntfns.go
M rpcserver.go
M wallet/wallet.go
M wallet/wallet_test.go
Log Message:
-----------
Rescan and track sync status of imported addresses.
The private key import codepath (called when handling the
importprivkey RPC method) was not triggering rescans for the imported
address. This change begins a new rescan for each import and adds
additional logic to the wallet file to keep track of unsynced imported
addresses. After a rescan on an imported address completes, the
address is marked as in sync with the rest of wallet and future
handshake rescans will start from the last seen block, rather than the
import height of the unsynced address.
While here, improve the logging for not just import rescans, but
rescanning on btcd connect (part of the handshake) as well.
Fixes #74.