mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
DestinationEncoder: don't assert when a parent destination is unblinded
This commit is contained in:
parent
a904f02fb1
commit
40a62a151d
1 changed files with 0 additions and 2 deletions
|
|
@ -33,7 +33,6 @@ public:
|
|||
std::string operator()(const PKHash& id) const
|
||||
{
|
||||
if (id.blinding_pubkey.IsFullyValid()) {
|
||||
assert(!for_parent);
|
||||
std::vector<unsigned char> data = m_params.Base58Prefix(CChainParams::BLINDED_ADDRESS);
|
||||
// Blinded addresses have the actual address type prefix inside the payload.
|
||||
std::vector<unsigned char> prefix = m_params.Base58Prefix(CChainParams::PUBKEY_ADDRESS);
|
||||
|
|
@ -52,7 +51,6 @@ public:
|
|||
std::string operator()(const ScriptHash& id) const
|
||||
{
|
||||
if (id.blinding_pubkey.IsFullyValid()) {
|
||||
assert(!for_parent);
|
||||
std::vector<unsigned char> data = m_params.Base58Prefix(CChainParams::BLINDED_ADDRESS);
|
||||
// Blinded addresses have the actual address type prefix inside the payload.
|
||||
std::vector<unsigned char> prefix = m_params.Base58Prefix(CChainParams::SCRIPT_ADDRESS);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue