From cb448597d4a9811ce7e68a618aa11c568e73fe15 Mon Sep 17 00:00:00 2001 From: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com> Date: Sat, 10 Jul 2021 05:32:06 -0500 Subject: [PATCH] bugfix: fix signrawtransaction when multiple wallets are loaded (#4237) --- src/rpc/rawtransaction.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index 3c1cbb90bb..2a47a243e6 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -1055,6 +1055,10 @@ UniValue signrawtransaction(const JSONRPCRequest& request) new_request.id = request.id; new_request.params.setArray(); + // This is needed to ensure that signrawtransactionwithwallet can figure out what wallet to use when multiple + // wallets are loaded + new_request.URI = request.URI; + // For signing with private keys if (!request.params[2].isNull()) { new_request.params.push_back(request.params[0]);