X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fwallet.h;h=a78dcee5285d9333a0092bc7895548c57056c61d;hb=cf882ecd08d63682370e8e928a63ed51b9aa6734;hp=f7a05ad142f2fbe022b31d5ea789710a892960a0;hpb=0c80f9494715c7dacd6c74a6a56092b416a4d60d;p=novacoin.git diff --git a/src/wallet.h b/src/wallet.h index f7a05ad..a78dcee 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -642,16 +642,14 @@ public: return (GetDebit() > 0); } - bool IsConfirmed() const + bool IsTrusted() const { // Quick answer in most cases if (!IsFinal()) return false; if (GetDepthInMainChain() >= 1) return true; - if (!IsFromMe()) // using wtx's cached debit - return false; - if (fConfChange) + if (fConfChange || !IsFromMe()) // using wtx's cached debit return false; // If no confirmations but it's from us, we can still