Support disabling the addition of the default bootnode (#3888)

This commit is contained in:
Bastian Köcher
2019-10-22 18:54:52 +02:00
committed by GitHub
parent 5a40da5cba
commit 5123a84f13
2 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -803,7 +803,7 @@ where
G: RuntimeGenesis,
E: ChainSpecExtension,
{
if spec.boot_nodes().is_empty() {
if spec.boot_nodes().is_empty() && !cli.disable_default_bootnode {
let base_path = base_path(&cli.shared_params, version);
let storage_path = network_path(&base_path, spec.id());
let node_key = node_key_config(cli.node_key_params, &Some(storage_path))?;