089fa9de18
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. |
||
---|---|---|
.. | ||
wallet.go | ||
wallet_test.go |