mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
bugfix: fix signrawtransaction when multiple wallets are loaded (#4237)
This commit is contained in:
parent
c18a415c5e
commit
cb448597d4
@ -1055,6 +1055,10 @@ UniValue signrawtransaction(const JSONRPCRequest& request)
|
|||||||
new_request.id = request.id;
|
new_request.id = request.id;
|
||||||
new_request.params.setArray();
|
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
|
// For signing with private keys
|
||||||
if (!request.params[2].isNull()) {
|
if (!request.params[2].isNull()) {
|
||||||
new_request.params.push_back(request.params[0]);
|
new_request.params.push_back(request.params[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user