From a11e894b31ce5a06e6d9179bac86003c1da10d6a Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Thu, 4 Feb 2021 12:34:55 +1100 Subject: [PATCH] Prepend all libp2p protocols with "comit" --- swap/src/network/request_response.rs | 6 +++--- swap/src/protocol/alice/execution_setup.rs | 2 +- swap/src/protocol/bob/execution_setup.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/swap/src/network/request_response.rs b/swap/src/network/request_response.rs index a7589e8a..c1dbc73a 100644 --- a/swap/src/network/request_response.rs +++ b/swap/src/network/request_response.rs @@ -42,19 +42,19 @@ pub struct EncryptedSignatureProtocol; impl ProtocolName for Swap { fn protocol_name(&self) -> &[u8] { - b"/xmr/btc/swap/1.0.0" + b"/comit/xmr/btc/swap/1.0.0" } } impl ProtocolName for TransferProofProtocol { fn protocol_name(&self) -> &[u8] { - b"/xmr/btc/transfer_proof/1.0.0" + b"/comit/xmr/btc/transfer_proof/1.0.0" } } impl ProtocolName for EncryptedSignatureProtocol { fn protocol_name(&self) -> &[u8] { - b"/xmr/btc/encrypted_signature/1.0.0" + b"/comit/xmr/btc/encrypted_signature/1.0.0" } } diff --git a/swap/src/protocol/alice/execution_setup.rs b/swap/src/protocol/alice/execution_setup.rs index df3b6538..aa7ca641 100644 --- a/swap/src/protocol/alice/execution_setup.rs +++ b/swap/src/protocol/alice/execution_setup.rs @@ -54,7 +54,7 @@ pub struct Behaviour { impl Default for Behaviour { fn default() -> Self { Self { - inner: libp2p_async_await::Behaviour::new(b"/execution_setup/1.0.0"), + inner: libp2p_async_await::Behaviour::new(b"/comit/xmr/btc/execution_setup/1.0.0"), } } } diff --git a/swap/src/protocol/bob/execution_setup.rs b/swap/src/protocol/bob/execution_setup.rs index cff6a3fd..f57e57b9 100644 --- a/swap/src/protocol/bob/execution_setup.rs +++ b/swap/src/protocol/bob/execution_setup.rs @@ -57,7 +57,7 @@ pub struct Behaviour { impl Default for Behaviour { fn default() -> Self { Self { - inner: libp2p_async_await::Behaviour::new(b"/execution_setup/1.0.0"), + inner: libp2p_async_await::Behaviour::new(b"/comit/xmr/btc/execution_setup/1.0.0"), } } }