Skip to content

Commit

Permalink
Rename IsFromMe(nullifier) to IsSproutNullifierFromMe(nullifier).
Browse files Browse the repository at this point in the history
  • Loading branch information
bitcartel committed Aug 8, 2018
1 parent 78584ef commit 037cacf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/wallet/wallet.cpp
Expand Up @@ -1554,7 +1554,7 @@ mapSaplingNoteData_t CWallet::FindMySaplingNotes(const CTransaction &tx) const
return noteData;
}

bool CWallet::IsFromMe(const uint256& nullifier) const
bool CWallet::IsSproutNullifierFromMe(const uint256& nullifier) const
{
{
LOCK(cs_wallet);
Expand Down Expand Up @@ -1707,7 +1707,7 @@ bool CWallet::IsFromMe(const CTransaction& tx) const
}
for (const JSDescription& jsdesc : tx.vjoinsplit) {
for (const uint256& nullifier : jsdesc.nullifiers) {
if (IsFromMe(nullifier)) {
if (IsSproutNullifierFromMe(nullifier)) {
return true;
}
}
Expand Down Expand Up @@ -1841,7 +1841,7 @@ void CWalletTx::GetAmounts(list<COutputEntry>& listReceived,
bool isFromMyZaddr = false;
for (const JSDescription& js : vjoinsplit) {
for (const uint256& nullifier : js.nullifiers) {
if (pwallet->IsFromMe(nullifier)) {
if (pwallet->IsSproutNullifierFromMe(nullifier)) {
isFromMyZaddr = true;
break;
}
Expand All @@ -1868,7 +1868,7 @@ void CWalletTx::GetAmounts(list<COutputEntry>& listReceived,

// Check input side
for (const uint256& nullifier : js.nullifiers) {
if (pwallet->IsFromMe(nullifier)) {
if (pwallet->IsSproutNullifierFromMe(nullifier)) {
fMyJSDesc = true;
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/wallet.h
Expand Up @@ -1098,7 +1098,7 @@ class CWallet : public CCryptoKeyStore, public CValidationInterface
uint8_t n) const;
mapSproutNoteData_t FindMySproutNotes(const CTransaction& tx) const;
mapSaplingNoteData_t FindMySaplingNotes(const CTransaction& tx) const;
bool IsFromMe(const uint256& nullifier) const;
bool IsSproutNullifierFromMe(const uint256& nullifier) const;
void GetSproutNoteWitnesses(
std::vector<JSOutPoint> notes,
std::vector<boost::optional<SproutWitness>>& witnesses,
Expand Down

0 comments on commit 037cacf

Please sign in to comment.