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