diff --git a/cli/src/lib.rs b/cli/src/lib.rs index 8d43f8c64ea..4576b942532 100644 --- a/cli/src/lib.rs +++ b/cli/src/lib.rs @@ -359,8 +359,6 @@ impl Iroha { #[cfg(debug_assertions)] let freeze_status = FreezeStatus::new(config.common.peer.clone()); - Arc::new(AtomicBool::new(false)); - let notify_shutdown = Arc::new(Notify::new()); NetworkRelay { diff --git a/configs/swarm/genesis.json b/configs/swarm/genesis.json index 327578b900a..ebf12587bb7 100644 --- a/configs/swarm/genesis.json +++ b/configs/swarm/genesis.json @@ -185,6 +185,6 @@ } } ], - "executor_file": "./executor.wasm", - "chain_id": "00000000-0000-0000-0000-000000000000" + "executor": "./executor.wasm", + "chain": "00000000-0000-0000-0000-000000000000" } diff --git a/genesis/src/lib.rs b/genesis/src/lib.rs index b2939b83319..2d972d0bd8a 100644 --- a/genesis/src/lib.rs +++ b/genesis/src/lib.rs @@ -31,9 +31,9 @@ pub struct GenesisTransaction(pub SignedTransaction); pub struct RawGenesisTransaction { instructions: Vec, /// Path to the [`Executor`] file - executor_file: PathBuf, + executor: PathBuf, /// Unique id of blockchain - chain_id: ChainId, + chain: ChainId, } impl RawGenesisTransaction { @@ -61,11 +61,11 @@ impl RawGenesisTransaction { path.as_ref().display() ) })?; - value.executor_file = path + value.executor = path .as_ref() .parent() .expect("genesis must be a file in some directory") - .join(value.executor_file); + .join(value.executor); Ok(value) } @@ -79,9 +79,9 @@ impl RawGenesisTransaction { /// # Errors /// If executor couldn't be read from provided path pub fn build_and_sign(self, genesis_key_pair: &KeyPair) -> Result { - let executor = get_executor(&self.executor_file)?; + let executor = get_executor(&self.executor)?; let genesis = - build_and_sign_genesis(self.instructions, executor, self.chain_id, genesis_key_pair); + build_and_sign_genesis(self.instructions, executor, self.chain, genesis_key_pair); Ok(genesis) } } @@ -181,8 +181,8 @@ impl GenesisTransactionBuilder { pub fn build_raw(self, executor_file: PathBuf, chain_id: ChainId) -> RawGenesisTransaction { RawGenesisTransaction { instructions: self.instructions, - executor_file, - chain_id, + executor: executor_file, + chain: chain_id, } } }