mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
script/sign: remove needless IsSolvable() utility
It was used back when we didn't have a concept of descriptor. Now we can check for solvability using descriptors.
This commit is contained in:
parent
c232ef20c0
commit
b16f93cadd
7 changed files with 4 additions and 32 deletions
|
|
@ -1453,7 +1453,8 @@ void LegacyScriptPubKeyMan::LearnRelatedScripts(const CPubKey& key, OutputType t
|
|||
CTxDestination witdest = WitnessV0KeyHash(key.GetID());
|
||||
CScript witprog = GetScriptForDestination(witdest);
|
||||
// Make sure the resulting program is solvable.
|
||||
assert(IsSolvable(*this, witprog));
|
||||
const auto desc = InferDescriptor(witprog, *this);
|
||||
assert(desc && desc->IsSolvable());
|
||||
AddCScript(witprog);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue