From 40a62a151da8be6a9bbc5fc4631c7ce58a100028 Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Thu, 4 Apr 2019 11:46:00 -0400 Subject: [PATCH] DestinationEncoder: don't assert when a parent destination is unblinded --- src/key_io.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/key_io.cpp b/src/key_io.cpp index 9ee053bdbe..897d816079 100644 --- a/src/key_io.cpp +++ b/src/key_io.cpp @@ -33,7 +33,6 @@ public: std::string operator()(const PKHash& id) const { if (id.blinding_pubkey.IsFullyValid()) { - assert(!for_parent); std::vector data = m_params.Base58Prefix(CChainParams::BLINDED_ADDRESS); // Blinded addresses have the actual address type prefix inside the payload. std::vector 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 data = m_params.Base58Prefix(CChainParams::BLINDED_ADDRESS); // Blinded addresses have the actual address type prefix inside the payload. std::vector prefix = m_params.Base58Prefix(CChainParams::SCRIPT_ADDRESS);