Update AnkFlag::Init to Handshake
This commit is contained in:
parent
a09eb404e2
commit
960c0808fa
@ -216,7 +216,7 @@ async fn handle_connection(raw_stream: TcpStream, addr: SocketAddr, our_sp_addre
|
||||
);
|
||||
|
||||
if let Err(e) = broadcast_message(
|
||||
AnkFlag::Init,
|
||||
AnkFlag::Handshake,
|
||||
format!("{}", init_msg.to_string()),
|
||||
BroadcastType::Sender(addr)
|
||||
)
|
||||
|
@ -215,7 +215,7 @@ pub fn process_message(raw_msg: &str, addr: SocketAddr) {
|
||||
AnkFlag::Cipher => process_cipher_message(ank_msg, addr),
|
||||
AnkFlag::Commit => process_commit_message(ank_msg, addr),
|
||||
AnkFlag::Unknown => process_unknown_message(ank_msg, addr),
|
||||
AnkFlag::Init => log::debug!("Received init message from {}", addr),
|
||||
AnkFlag::Handshake => log::debug!("Received init message from {}", addr),
|
||||
},
|
||||
Err(_) => log::error!("Failed to parse network message"),
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user