Skip to content

Commit c232ef2

Browse files
committed
outputtype: remove redundant check for uncompressed keys in AddAndGetDestinationForScript
It's already checked by its (only) caller, AddAndGetMultisigDestination.
1 parent b1a2021 commit c232ef2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/outputtype.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ CTxDestination AddAndGetDestinationForScript(FillableSigningProvider& keystore,
9191
case OutputType::BECH32: {
9292
CTxDestination witdest = WitnessV0ScriptHash(script);
9393
CScript witprog = GetScriptForDestination(witdest);
94-
// Check if the resulting program is solvable (i.e. doesn't use an uncompressed key)
95-
if (!IsSolvable(keystore, witprog)) return ScriptHash(script);
9694
// Add the redeemscript, so that P2WSH and P2SH-P2WSH outputs are recognized as ours.
9795
keystore.AddCScript(witprog);
9896
if (type == OutputType::BECH32) {

0 commit comments

Comments
 (0)