diff options
| author | gustavonalle <[email protected]> | 2018-09-24 16:10:23 +0100 |
|---|---|---|
| committer | gustavonalle <[email protected]> | 2018-09-24 18:13:22 +0100 |
| commit | db15805668e923c3493d77122d20926496cf6a1a (patch) | |
| tree | 82429ad993cdedecbada746600e82caaf9cd7c99 /src | |
| parent | Merge #14297: [RPC] Remove warning for removed estimatefee RPC (diff) | |
| download | discoin-db15805668e923c3493d77122d20926496cf6a1a.tar.xz discoin-db15805668e923c3493d77122d20926496cf6a1a.zip | |
[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 1a2dff9a9..8a402546a 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]); } |