From c232ef20c0fd2e3b55355e52684091cad3af5247 Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Wed, 20 Jul 2022 10:31:41 +0200 Subject: outputtype: remove redundant check for uncompressed keys in AddAndGetDestinationForScript It's already checked by its (only) caller, AddAndGetMultisigDestination. --- src/outputtype.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/outputtype.cpp') diff --git a/src/outputtype.cpp b/src/outputtype.cpp index 19366295e6..5be9942d7d 100644 --- a/src/outputtype.cpp +++ b/src/outputtype.cpp @@ -91,8 +91,6 @@ CTxDestination AddAndGetDestinationForScript(FillableSigningProvider& keystore, case OutputType::BECH32: { CTxDestination witdest = WitnessV0ScriptHash(script); CScript witprog = GetScriptForDestination(witdest); - // Check if the resulting program is solvable (i.e. doesn't use an uncompressed key) - if (!IsSolvable(keystore, witprog)) return ScriptHash(script); // Add the redeemscript, so that P2WSH and P2SH-P2WSH outputs are recognized as ours. keystore.AddCScript(witprog); if (type == OutputType::BECH32) { -- cgit v1.2.3