mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
wallet: check if tx scriptPubKey is unspendable
This commit is contained in:
parent
b6915b8239
commit
c611acc38a
@ -1035,7 +1035,7 @@ void CWalletTx::GetAmounts(list<COutputEntry>& listReceived,
|
||||
// In either case, we need to get the destination address
|
||||
CTxDestination address;
|
||||
|
||||
if (!ExtractDestination(txout.scriptPubKey, address) && txout.scriptPubKey[0] != OP_RETURN)
|
||||
if (!ExtractDestination(txout.scriptPubKey, address) && txout.scriptPubKey.IsUnspendable())
|
||||
{
|
||||
LogPrintf("CWalletTx::GetAmounts: Unknown transaction type found, txid %s\n",
|
||||
this->GetHash().ToString());
|
||||
|
Loading…
Reference in New Issue
Block a user