Fixes for 1.4 (#3260)
* Fix --geth * Fix mac installer. * Fix up installer. * Additional tweaks. * Fix for empty APIs * Another case of empty apis Former-commit-id: 9cb8309b2c10e64815505af014c6fc33235bd007
This commit is contained in:
committed by
Arkadiy Paronyan
parent
972f1b11d6
commit
8e44212536
@@ -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