Browse Source

Scan the whole chain whenever a z-key is imported

Closes #1941.
pull/4/head
Jack Grigg 8 years ago
parent
commit
7e3a20f235
No known key found for this signature in database GPG Key ID: 6A6914DAFBEA00DA
  1. 3
      src/wallet/rpcdump.cpp

3
src/wallet/rpcdump.cpp

@ -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);

Loading…
Cancel
Save