Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions stratumv2/src/network/message_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ use crate::{
network::{Encryptor, Peer},
};

/// A trait that should be applied to upstream devices such as a Mining Pool Server
/// that can handle [SetupConnection Messages](../common/setup_connection/enum.SetupConnection.html).
pub trait NewConnReceiver<E: Encryptor> {
/// A trait that should be applied to a message handler for a Mining Pool Server.
pub trait ServerMsgHandler<E: Encryptor> {
fn handle_new_conn(
&self,
server_flags: &mining::SetupConnectionFlags,
Expand Down
2 changes: 1 addition & 1 deletion stratumv2/src/network/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ mod peer;
pub use channel::{new_channel_id, ChanID, Channel, ChannelManager};
pub use config::{NetworkConfig, NoiseConfig, ServerConfig};
pub use encryptor::{ConnectionEncryptor, Encryptor};
pub use message_handler::{JobNegotiationInitiator, MiningInitiator, NewConnReceiver};
pub use message_handler::{JobNegotiationInitiator, MiningInitiator, ServerMsgHandler};
pub use peer::Peer;