From 037cacf2ceb3a39472342b8e0c318ce708ad86ce Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 30 Jul 2018 15:35:34 -0700 Subject: [PATCH] Rename IsFromMe(nullifier) to IsSproutNullifierFromMe(nullifier). --- src/wallet/wallet.cpp | 8 ++++---- src/wallet/wallet.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index d5cbd0885..a6b55f106 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -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); @@ -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; } } @@ -1841,7 +1841,7 @@ void CWalletTx::GetAmounts(list& 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; } @@ -1868,7 +1868,7 @@ void CWalletTx::GetAmounts(list& listReceived, // Check input side for (const uint256& nullifier : js.nullifiers) { - if (pwallet->IsFromMe(nullifier)) { + if (pwallet->IsSproutNullifierFromMe(nullifier)) { fMyJSDesc = true; break; } diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 675a4428f..aec720073 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -1098,7 +1098,7 @@ public: 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 notes, std::vector>& witnesses,