Add SaplingIncomingViewingKeys map, SaplingFullViewingKey methods

This commit is contained in:
Jay Graber
2018-07-05 14:52:46 -07:00
parent efb7662d4a
commit f4207d0c0e
3 changed files with 94 additions and 10 deletions

View File

@@ -138,16 +138,12 @@ bool CWallet::AddSaplingZKey(const libzcash::SaplingSpendingKey &sk)
if (!CCryptoKeyStore::AddSaplingSpendingKey(sk)) {
return false;
}
if (!fFileBacked) {
return true;
}
// // check if we need to remove from viewing keys
// if (HaveViewingKey(addr)) {
// RemoveViewingKey(key.viewing_key());
// }
// if (!fFileBacked) {
// return true;
// }
// TODO: Persist to disk
// if (!IsCrypted()) {
// return CWalletDB(strWalletFile).WriteSaplingZKey(addr,
// sk,