Scan the whole chain whenever a z-key is imported

Closes #1941.
This commit is contained in:
Jack Grigg
2017-01-04 15:40:35 +01:00
parent 57a0725ae1
commit 7e3a20f235

View File

@@ -575,6 +575,9 @@ Value z_importkey(const Array& params, bool fHelp)
pwalletMain->mapZKeyMetadata[addr].nCreateTime = 1;
// whenever a key is imported, we need to scan the whole chain
pwalletMain->nTimeFirstKey = 1; // 0 would be considered 'no value'
// We want to scan for transactions and notes
if (fRescan) {
pwalletMain->ScanForWalletTransactions(chainActive.Genesis(), true);