]> Git Repo - VerusCoin.git/blobdiff - src/keystore.cpp
test
[VerusCoin.git] / src / keystore.cpp
index 22cd08f30c8cfdd9628a4481f4c0ae5bc3a6911b..f32ba0c323819afe382405800524dd05e90eb51b 100644 (file)
@@ -5,10 +5,7 @@
 
 #include "keystore.h"
 
-#include "crypter.h"
 #include "key.h"
-#include "script/script.h"
-#include "script/standard.h"
 #include "util.h"
 
 #include <boost/foreach.hpp>
@@ -86,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.023918 seconds and 4 git commands to generate.