update waku (#146)

* update waku

* Fix waku update

---------

Co-authored-by: danielsanchezq <sanchez.quiros.daniel@gmail.com>
This commit is contained in:
Giacomo Pasini 2023-05-15 16:21:49 +02:00 committed by GitHub
parent 4b880778ab
commit bbd313f70a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 3 deletions

View File

@ -28,4 +28,4 @@ serde_json = "1.0"
serde_yaml = "0.9"
color-eyre = "0.6.0"
serde = "1"
waku-bindings = "0.1.0-rc.2"
waku-bindings = "0.1.0"

View File

@ -244,6 +244,8 @@ async fn send_transaction(
WAKU_CARNOT_TX_CONTENT_TOPIC.clone(),
1,
chrono::Utc::now().timestamp() as usize,
[],
false,
),
topic: Some(WAKU_CARNOT_PUB_SUB_TOPIC.clone()),
}))

View File

@ -112,7 +112,14 @@ impl WakuAdapter {
}
async fn broadcast(&self, bytes: Box<[u8]>, topic: WakuContentTopic) {
let message = WakuMessage::new(bytes, topic, 1, chrono::Utc::now().timestamp() as usize);
let message = WakuMessage::new(
bytes,
topic,
1,
chrono::Utc::now().timestamp() as usize,
[],
false,
);
if let Err((_, _e)) = self
.network_relay
.send(NetworkMsg::Process(WakuBackendMessage::Broadcast {
@ -220,6 +227,8 @@ impl NetworkAdapter for WakuAdapter {
content_topic,
1,
chrono::Utc::now().timestamp() as usize,
[],
false,
);
if let Err((_, _e)) = self
.network_relay

View File

@ -19,7 +19,7 @@ tokio-stream = "0.1"
thiserror = "1.0"
tracing = "0.1"
rand = { version = "0.8", optional = true }
waku-bindings = { version = "0.1.0-rc.2", optional = true }
waku-bindings = { version = "0.1.0", optional = true }
tracing-appender = "0.2"
tracing-subscriber = { version = "0.3", features = ["json"] }
tracing-gelf = "0.7"