Skip to content

Commit

Permalink
MERGE-FIX: Fix upstream functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenroose committed May 3, 2019
1 parent 71723f7 commit 3a83980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/rpcdump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 3a83980

Please sign in to comment.