diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 6df74e848b8..b51e7d1109b 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1634,7 +1634,11 @@ bool CWallet::IsMine(const COutPoint& outpoint) const bool CWallet::IsFromMe(const CTransaction& tx) const { - return (GetDebit(tx) > 0); + LOCK(cs_wallet); + for (const CTxIn& txin : tx.vin) { + if (GetTXO(txin.prevout)) return true; + } + return false; } CAmount CWallet::GetDebit(const CTransaction& tx) const