| 4431 | } |
| 4432 | |
| 4433 | void CWallet::LearnRelatedScripts(const CPubKey& key, OutputType type) |
| 4434 | { |
| 4435 | if (key.IsCompressed() && (type == OutputType::P2SH_SEGWIT || type == OutputType::BECH32)) { |
| 4436 | CTxDestination witdest = WitnessV0KeyHash(key.GetID()); |
| 4437 | CScript witprog = GetScriptForDestination(witdest); |
| 4438 | // Make sure the resulting program is solvable. |
| 4439 | assert(IsSolvable(*this, witprog)); |
| 4440 | AddCScript(witprog); |
| 4441 | } |
| 4442 | } |
| 4443 | |
| 4444 | void CWallet::LearnAllRelatedScripts(const CPubKey& key) |
| 4445 | { |
no test coverage detected