File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1023,18 +1023,18 @@ UniValue signrawtransaction(const JSONRPCRequest& request)
1023
1023
new_request.params .push_back (request.params [1 ]);
1024
1024
new_request.params .push_back (request.params [3 ]);
1025
1025
return signrawtransactionwithkey (new_request);
1026
- }
1027
- // Otherwise sign with the wallet which does not take a privkeys parameter
1026
+ } else {
1028
1027
#ifdef ENABLE_WALLET
1029
- else {
1028
+ // Otherwise sign with the wallet which does not take a privkeys parameter
1030
1029
new_request.params .push_back (request.params [0 ]);
1031
1030
new_request.params .push_back (request.params [1 ]);
1032
1031
new_request.params .push_back (request.params [3 ]);
1033
1032
return signrawtransactionwithwallet (new_request);
1034
- }
1033
+ #else
1034
+ // If we have made it this far, then wallet is disabled and no private keys were given, so fail here.
1035
+ throw JSONRPCError (RPC_INVALID_PARAMETER, " No private keys available." );
1035
1036
#endif
1036
- // If we have made it this far, then wallet is disabled and no private keys were given, so fail here.
1037
- throw JSONRPCError (RPC_INVALID_PARAMETER, " No private keys available." );
1037
+ }
1038
1038
}
1039
1039
1040
1040
UniValue sendrawtransaction (const JSONRPCRequest& request)
You can’t perform that action at this time.
0 commit comments