Update waku-bindings to beta2 (#40)
This commit is contained in:
parent
3a72cddb81
commit
664cb3ccd8
|
@ -16,8 +16,7 @@ nomos-core = { path = "../../nomos-core" }
|
|||
tokio = { version = "1", features = ["sync"] }
|
||||
tokio-stream = "0.1"
|
||||
futures = "0.3"
|
||||
waku-bindings = { version = "0.1.0-beta1", optional = true}
|
||||
once_cell = "1.16"
|
||||
waku-bindings = { version = "0.1.0-beta2", optional = true}
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
// std
|
||||
// crates
|
||||
use futures::{Stream, StreamExt};
|
||||
use once_cell::sync::Lazy;
|
||||
use tokio_stream::wrappers::BroadcastStream;
|
||||
// internal
|
||||
use crate::network::{
|
||||
|
@ -17,23 +16,14 @@ use nomos_network::{
|
|||
use overwatch_rs::services::{relay::OutboundRelay, ServiceData};
|
||||
use waku_bindings::{Encoding, WakuContentTopic, WakuMessage, WakuPubSubTopic};
|
||||
|
||||
static WAKU_CARNOT_PUB_SUB_TOPIC: Lazy<WakuPubSubTopic> =
|
||||
Lazy::new(|| WakuPubSubTopic::new("CarnotSim".to_string(), Encoding::Proto));
|
||||
static WAKU_CARNOT_PUB_SUB_TOPIC: WakuPubSubTopic =
|
||||
WakuPubSubTopic::new("CarnotSim", Encoding::Proto);
|
||||
|
||||
static WAKU_CARNOT_BLOCK_CONTENT_TOPIC: Lazy<WakuContentTopic> = Lazy::new(|| WakuContentTopic {
|
||||
application_name: "CarnotSim".to_string(),
|
||||
version: 1,
|
||||
content_topic_name: "CarnotBlock".to_string(),
|
||||
encoding: Encoding::Proto,
|
||||
});
|
||||
static WAKU_CARNOT_BLOCK_CONTENT_TOPIC: WakuContentTopic =
|
||||
WakuContentTopic::new("CarnotSim", 1, "CarnotBlock", Encoding::Proto);
|
||||
|
||||
static WAKU_CARNOT_APPROVAL_CONTENT_TOPIC: Lazy<WakuContentTopic> =
|
||||
Lazy::new(|| WakuContentTopic {
|
||||
application_name: "CarnotSim".to_string(),
|
||||
version: 1,
|
||||
content_topic_name: "CarnotApproval".to_string(),
|
||||
encoding: Encoding::Proto,
|
||||
});
|
||||
static WAKU_CARNOT_APPROVAL_CONTENT_TOPIC: WakuContentTopic =
|
||||
WakuContentTopic::new("CarnotSim", 1, "CarnotApproval", Encoding::Proto);
|
||||
|
||||
// TODO: ehm...this should be here, but we will change it whenever the chunking is decided.
|
||||
const CHUNK_SIZE: usize = 8;
|
||||
|
|
|
@ -15,7 +15,7 @@ sled = { version = "0.34", optional = true }
|
|||
tokio = { version = "1", features = ["sync"] }
|
||||
thiserror = "1.0"
|
||||
tracing = "0.1"
|
||||
waku-bindings = { version = "0.1.0-beta1", optional = true }
|
||||
waku-bindings = { version = "0.1.0-beta2", optional = true }
|
||||
tracing-appender = "0.2"
|
||||
tracing-subscriber = { version = "0.3", features = ["json"] }
|
||||
tracing-gelf = "0.7"
|
||||
|
|
Loading…
Reference in New Issue