MERGE-FIX: Fix upstream functional tests

This commit is contained in:
Steven Roose 2019-05-02 16:51:55 +01:00
parent 71723f794f
commit 3a8398024f
No known key found for this signature in database
GPG key ID: 2F2A88D7F8D68E87

View file

@ -965,7 +965,7 @@ static UniValue ProcessImport(CWallet * const pwallet, const UniValue& data, con
}
// (P2SH-)P2PK/P2PKH/P2WPKH
if (dest.type() == typeid(CKeyID) || dest.type() == typeid(WitnessV0KeyHash)) {
if (dest.type() == typeid(PKHash) || dest.type() == typeid(WitnessV0KeyHash)) {
if (!allow_p2wpkh && dest.type() == typeid(WitnessV0KeyHash)) {
throw JSONRPCError(RPC_INVALID_PARAMETER, "P2WPKH cannot be embedded in P2WSH");
}