From e15d3e6fd20b3f87abaad7ddec1c88b0e66419f9 Mon Sep 17 00:00:00 2001 From: hozan23 Date: Mon, 15 Jul 2024 13:16:01 +0200 Subject: p2p: Major refactoring of the handshake protocol Introduce a new protocol InitProtocol which can be used as the core protocol for initializing a connection with a peer. Move the handshake logic from the PeerPool module to the protocols directory and build a handshake protocol that implements InitProtocol trait. --- core/src/error.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/src/error.rs') diff --git a/core/src/error.rs b/core/src/error.rs index 2b8f641..754feb5 100644 --- a/core/src/error.rs +++ b/core/src/error.rs @@ -16,6 +16,9 @@ pub enum Error { #[error("Path Not Found Error: {0}")] PathNotFound(&'static str), + #[error("Event Emit Error: {0}")] + EventEmitError(String), + #[cfg(feature = "crypto")] #[error(transparent)] Ed25519(#[from] ed25519_dalek::ed25519::Error), -- cgit v1.2.3