Skip to content

Commit

Permalink
trivial: Allow non-standard type with empty scriptPubKey
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackcoinDev committed Sep 23, 2024
1 parent 81faf71 commit 60cddb3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/addresstype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,14 @@ bool ExtractDestination(const CScript& scriptPubKey, CTxDestination& addressRet)
}
case TxoutType::MULTISIG:
case TxoutType::NULL_DATA:
case TxoutType::NONSTANDARD:
case TxoutType::NONSTANDARD: {
addressRet = CNoDestination(scriptPubKey);

// Blackcoin: Allow non-standard type with empty scriptPubKey
if (scriptPubKey.empty()) {
return true;
}

return false;
} // no default case, so the compiler can warn about missing cases
assert(false);
Expand Down

0 comments on commit 60cddb3

Please sign in to comment.