From 410d5fa083cc2b3f6160777d0423b87f1344a09d Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Wed, 10 Apr 2019 14:12:49 -0400 Subject: [PATCH] sendtomainchain_base should be decoding parent destination --- src/wallet/rpcwallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index fb4cad1958..b527d9c854 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -4744,7 +4744,7 @@ UniValue sendtomainchain_base(const JSONRPCRequest& request) EnsureWalletIsUnlocked(pwallet); - CTxDestination parent_address = DecodeDestination(request.params[0].get_str()); + CTxDestination parent_address = DecodeParentDestination(request.params[0].get_str()); if (!IsValidDestination(parent_address)) throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid Bitcoin address");