Add wallet method for finding spendable notes in a CTransaction
This commit is contained in:
@@ -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[address] = ZCNoteDecryption(sk.viewing_key());
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user