bugfix: fix signrawtransaction when multiple wallets are loaded (#4237)

This commit is contained in:
PastaPastaPasta 2021-07-10 05:32:06 -05:00 committed by GitHub
parent c18a415c5e
commit cb448597d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]);