diff options
author | gustavonalle <gustavonalle@gmail.com> | 2018-09-24 16:10:23 +0100 |
---|---|---|
committer | gustavonalle <gustavonalle@gmail.com> | 2018-09-24 18:13:22 +0100 |
commit | db15805668e923c3493d77122d20926496cf6a1a (patch) | |
tree | 82429ad993cdedecbada746600e82caaf9cd7c99 /src | |
parent | 985d28cc90eda7f637b47cda78e74099d3df8734 (diff) |
[wallet] Ensure wallet is unlocked before signing
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/rpcwallet.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 1a2dff9a96..8a402546a7 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -3116,6 +3116,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]); } |