mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-11 21:49:26 +00:00
fix p2p Reqres protocol
This commit is contained in:
@@ -29,7 +29,7 @@ use libp2p::{
|
|||||||
noise, yamux,
|
noise, yamux,
|
||||||
request_response::{
|
request_response::{
|
||||||
Codec as RrCodecTrait, Message as RrMessage, Event as RrEvent, Config as RrConfig,
|
Codec as RrCodecTrait, Message as RrMessage, Event as RrEvent, Config as RrConfig,
|
||||||
Behaviour as RrBehavior,
|
Behaviour as RrBehavior, ProtocolSupport,
|
||||||
},
|
},
|
||||||
gossipsub::{
|
gossipsub::{
|
||||||
IdentTopic, FastMessageId, MessageId, MessageAuthenticity, ValidationMode, ConfigBuilder,
|
IdentTopic, FastMessageId, MessageId, MessageAuthenticity, ValidationMode, ConfigBuilder,
|
||||||
@@ -297,7 +297,7 @@ impl LibP2p {
|
|||||||
let throwaway_key_pair = Keypair::generate_ed25519();
|
let throwaway_key_pair = Keypair::generate_ed25519();
|
||||||
|
|
||||||
let behavior = Behavior {
|
let behavior = Behavior {
|
||||||
reqres: { RrBehavior::new([], RrConfig::default()) },
|
reqres: { RrBehavior::new([("/coordinator", ProtocolSupport::Full)], RrConfig::default()) },
|
||||||
gossipsub: {
|
gossipsub: {
|
||||||
let heartbeat_interval = tributary::tendermint::LATENCY_TIME / 2;
|
let heartbeat_interval = tributary::tendermint::LATENCY_TIME / 2;
|
||||||
let heartbeats_per_block =
|
let heartbeats_per_block =
|
||||||
|
|||||||
Reference in New Issue
Block a user