From fd9f9d64b7d3b6b7f2ce1525c430c608ba2b0c19 Mon Sep 17 00:00:00 2001 From: Adi Seredinschi Date: Fri, 26 Feb 2021 16:58:40 +0100 Subject: [PATCH] Removed delay option. --- relayer-cli/src/commands/create/connection.rs | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/relayer-cli/src/commands/create/connection.rs b/relayer-cli/src/commands/create/connection.rs index 8c49689022..bde1f2f5eb 100644 --- a/relayer-cli/src/commands/create/connection.rs +++ b/relayer-cli/src/commands/create/connection.rs @@ -34,17 +34,18 @@ pub struct CreateConnectionCommand { no_short )] client_b: Option, - - #[options( - help = "delay period parameter for the new connection; default: `0`.", - no_short - )] - delay: Option, + // TODO: Packet delay feature is not implemented, so we disallow specifying this option. + // https://github.com/informalsystems/ibc-rs/issues/640 + // #[options( + // help = "delay period parameter for the new connection; default: `0`.", + // no_short + // )] + // delay: Option, } // cargo run --bin hermes -- create connection ibc-0 ibc-1 -// cargo run --bin hermes -- create connection ibc-0 ibc-1 --delay 1000 -// cargo run --bin hermes -- create connection ibc-0 --client-a-id 07-tendermint-0 --client-b-id 07-tendermint-0 [--delay ] +// cargo run --bin hermes -- create connection ibc-0 ibc-1 +// cargo run --bin hermes -- create connection ibc-0 --client-a-id 07-tendermint-0 --client-b-id 07-tendermint-0 impl Runnable for CreateConnectionCommand { fn run(&self) { match &self.chain_b_id { @@ -90,7 +91,8 @@ impl CreateConnectionCommand { .unwrap_or_else(exit_with_unrecoverable_error); // Finally, execute the connection handshake. - let c = Connection::new(client_a, client_b, self.delay.unwrap_or(0)); + // TODO: pass the `delay` parameter here. + let c = Connection::new(client_a, client_b, 0); } /// Create a connection reusing pre-existing clients on both chains. @@ -157,6 +159,7 @@ impl CreateConnectionCommand { .unwrap_or_else(exit_with_unrecoverable_error); // All verification passed. Create the Connection object & do the handshake. - let c = Connection::new(client_a, client_b, self.delay.unwrap_or(0)); + // TODO: pass the `delay` parameter here. + let c = Connection::new(client_a, client_b, 0); } }