mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Set nodelay on coordinator's P2P sockets
This commit is contained in:
@@ -176,7 +176,7 @@ impl LibP2p {
|
|||||||
// Uses noise for authentication, yamux for multiplexing
|
// Uses noise for authentication, yamux for multiplexing
|
||||||
// TODO: Do we want to add a custom authentication protocol to only accept connections from
|
// TODO: Do we want to add a custom authentication protocol to only accept connections from
|
||||||
// fellow validators? Doing so would reduce the potential for spam
|
// fellow validators? Doing so would reduce the potential for spam
|
||||||
let transport = libp2p_tokio::Transport::new(Config::default())
|
let transport = libp2p_tokio::Transport::new(Config::default().nodelay(true))
|
||||||
.upgrade(upgrade::Version::V1)
|
.upgrade(upgrade::Version::V1)
|
||||||
.authenticate(noise::Config::new(&throwaway_key_pair).unwrap())
|
.authenticate(noise::Config::new(&throwaway_key_pair).unwrap())
|
||||||
.multiplex(yamux::Config::default())
|
.multiplex(yamux::Config::default())
|
||||||
|
|||||||
Reference in New Issue
Block a user