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 d3384c4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/addresstype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,16 @@ 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 d3384c4

Please sign in to comment.