mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 23:29:12 +01:00
committed by
Wladimir J. van der Laan
parent
d307681b18
commit
8b68263ed3
@@ -675,8 +675,10 @@ public:
|
||||
{
|
||||
// Transactions not sent by us: not trusted
|
||||
const CWalletTx* parent = pwallet->GetWalletTx(txin.prevout.hash);
|
||||
if (parent == NULL)
|
||||
return false;
|
||||
const CTxOut& parentOut = parent->vout[txin.prevout.n];
|
||||
if (parent == NULL || !pwallet->IsMine(parentOut))
|
||||
if (!pwallet->IsMine(parentOut))
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user