diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..f679363b8 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,12 @@ +# Contributing to Parity + +## License + +By contributing to Parity, you agree that your contributions will be +licensed under the [BSD License](LICENSE). + +At the top of every source code file you alter, after the initial +licence section, please append a second section that reads: + +Portions contributed by YOUR NAME are hereby placed under the BSD licence. + diff --git a/ethcore/src/service.rs b/ethcore/src/service.rs index 66cfe5d44..5e68efae9 100644 --- a/ethcore/src/service.rs +++ b/ethcore/src/service.rs @@ -133,7 +133,8 @@ mod tests { #[test] fn it_can_be_started() { let spec = get_test_spec(); - let service = ClientService::start(spec, NetworkConfiguration::new()); + let temp_path = RandomTempPath::new(); + let service = ClientService::start(spec, NetworkConfiguration::new(), &temp_path.as_path()); assert!(service.is_ok()); } } diff --git a/install-deps.sh b/install-deps.sh index 28a442040..774d18720 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -688,7 +688,7 @@ function run_installer() info "- Run tests with:" info " ${b}cargo test --release --features ethcore/json-tests -p ethcore${reset}" info "- Install the client with:" - info " ${b}sudo cp parity/target/release/parity${reset}" + info " ${b}sudo cp parity/target/release/parity${reset} /usr/local/bin" echo } diff --git a/parity/main.rs b/parity/main.rs index b89ff4fe0..6fdbaf82c 100644 --- a/parity/main.rs +++ b/parity/main.rs @@ -55,13 +55,14 @@ Parity. Ethereum Client. Copyright 2015, 2016 Ethcore (UK) Limited Usage: - parity [options] [ ... ] + parity [options] [ --no-bootstrap | ... ] Options: --chain CHAIN Specify the blockchain type. CHAIN may be either a JSON chain specification file or frontier, mainnet, morden, or testnet [default: frontier]. -d --db-path PATH Specify the database & configuration directory path [default: $HOME/.parity] + --no-bootstrap Don't bother trying to connect to any nodes initially. --listen-address URL Specify the IP/port on which to listen for peers [default: 0.0.0.0:30304]. --public-address URL Specify the IP/port on which peers may connect [default: 0.0.0.0:30304]. --address URL Equivalent to --listen-address URL --public-address URL. @@ -145,9 +146,11 @@ impl Configuration { } fn init_nodes(&self, spec: &Spec) -> Vec { - match self.args.arg_enode.len() { - 0 => spec.nodes().clone(), - _ => self.args.arg_enode.clone(), + if self.args.flag_no_bootstrap { Vec::new() } else { + match self.args.arg_enode.len() { + 0 => spec.nodes().clone(), + _ => self.args.arg_enode.clone(), + } } }