From bb9069555120474a53caf55027c2bdc1d4cf383c Mon Sep 17 00:00:00 2001 From: gustavonalle Date: Mon, 24 Sep 2018 16:10:23 +0100 Subject: [wallet] Ensure wallet is unlocked before signing Github-Pull: #14310 Rebased-From: db15805668e923c3493d77122d20926496cf6a1a --- src/wallet/rpcwallet.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/wallet') diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index a3de618059..9ddd21126a 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -3732,6 +3732,8 @@ UniValue signrawtransactionwithwallet(const JSONRPCRequest& request) // Sign the transaction LOCK2(cs_main, pwallet->cs_wallet); + EnsureWalletIsUnlocked(pwallet); + return SignTransaction(mtx, request.params[1], pwallet, false, request.params[2]); } -- cgit v1.2.3