]> Git Repo - VerusCoin.git/blobdiff - src/keystore.cpp
test
[VerusCoin.git] / src / keystore.cpp
index 7240cd747330339f92de94bf3eca3e2a22439c54..f32ba0c323819afe382405800524dd05e90eb51b 100644 (file)
@@ -87,6 +87,8 @@ bool CBasicKeyStore::HaveWatchOnly() const
 bool CBasicKeyStore::AddSpendingKey(const libzcash::SpendingKey &sk)
 {
     LOCK(cs_SpendingKeyStore);
-    mapSpendingKeys[sk.address()] = sk;
+    auto address = sk.address();
+    mapSpendingKeys[address] = sk;
+    mapNoteDecryptors.insert(std::make_pair(address, ZCNoteDecryption(sk.viewing_key())));
     return true;
 }
This page took 0.025225 seconds and 4 git commands to generate.