Fixes for 1.4 (#3260)
* Fix --geth * Fix mac installer. * Fix up installer. * Additional tweaks. * Fix for empty APIs * Another case of empty apis
This commit is contained in:
committed by
Arkadiy Paronyan
parent
f1e61c87b4
commit
7b5824d4a2
@@ -511,7 +511,10 @@ impl Configuration {
|
||||
fn rpc_apis(&self) -> String {
|
||||
let mut apis = self.args.flag_rpcapi.clone().unwrap_or(self.args.flag_jsonrpc_apis.clone());
|
||||
if self.args.flag_geth {
|
||||
apis.push_str(",personal");
|
||||
if !apis.is_empty() {
|
||||
apis.push_str(",");
|
||||
}
|
||||
apis.push_str("personal");
|
||||
}
|
||||
apis
|
||||
}
|
||||
@@ -548,6 +551,9 @@ impl Configuration {
|
||||
apis: {
|
||||
let mut apis = self.args.flag_ipcapi.clone().unwrap_or(self.args.flag_ipc_apis.clone());
|
||||
if self.args.flag_geth {
|
||||
if !apis.is_empty() {
|
||||
apis.push_str(",");
|
||||
}
|
||||
apis.push_str("personal");
|
||||
}
|
||||
try!(apis.parse())
|
||||
|
||||
Reference in New Issue
Block a user