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:
Gav Wood
2016-11-08 21:45:22 +01:00
committed by Arkadiy Paronyan
parent f1e61c87b4
commit 7b5824d4a2
6 changed files with 771 additions and 3 deletions

View File

@@ -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())