diff options
author | Antoine Poinsot <darosior@protonmail.com> | 2022-07-20 10:31:41 +0200 |
---|---|---|
committer | Antoine Poinsot <darosior@protonmail.com> | 2022-08-07 22:57:56 +0200 |
commit | c232ef20c0fd2e3b55355e52684091cad3af5247 (patch) | |
tree | f8d8d88853da2f0b09aa35b37f38fdeaa8cbd612 | |
parent | b1a2021f78099c17360dc2179cbcb948059b5969 (diff) |
outputtype: remove redundant check for uncompressed keys in AddAndGetDestinationForScript
It's already checked by its (only) caller, AddAndGetMultisigDestination.
-rw-r--r-- | src/outputtype.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
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) { |