Support descriptors with checksums in initpegoutwallet

This commit is contained in:
Steven Roose 2019-09-30 15:48:55 +02:00
parent 280c33f865
commit fdba8c45f9
No known key found for this signature in database
GPG key ID: 2F2A88D7F8D68E87
3 changed files with 9 additions and 8 deletions

View file

@ -464,13 +464,6 @@ public:
}
};
//TODO(stevenroose) remove if unused
CScript P2PKHGetScript(const CPubKey& pubkey) { return GetScriptForDestination(PKHash(pubkey)); }
CScript P2PKGetScript(const CPubKey& pubkey) { return GetScriptForRawPubKey(pubkey); }
CScript P2WPKHGetScript(const CPubKey& pubkey) { return GetScriptForDestination(WitnessV0KeyHash(pubkey.GetID())); }
CScript ConvertP2SH(const CScript& script) { return GetScriptForDestination(ScriptHash(script)); }
CScript ConvertP2WSH(const CScript& script) { return GetScriptForDestination(WitnessV0ScriptHash(script)); }
/** Construct a vector with one element, which is moved into it. */
template<typename T>
std::vector<T> Singleton(T elem)