adapt code to latest nwaku

This commit is contained in:
Ivan Folgueira Bande 2025-10-01 23:46:02 +02:00
parent 94e5a65249
commit 6e38c18aec
No known key found for this signature in database
GPG Key ID: 3C117481F89E24A7
3 changed files with 6 additions and 1 deletions

View File

@ -345,6 +345,7 @@ async fn main() -> eframe::Result<()> {
tcp_port: Some(60010),
cluster_id: Some(16),
shards: vec![1, 32, 64, 128, 256],
num_shards_in_network: Some(257),
// node_key: Some(SecretKey::from_str("2fc0515879e52b7b73297cfd6ab3abf7c344ef84b7a90ff6f4cc19e05a198027").unwrap()),
max_message_size: Some("1024KiB".to_string()),
relay_topics: vec![String::from(&game_topic)],

View File

@ -55,6 +55,7 @@ impl App<Initialized> {
tcp_port: Some(60010),
cluster_id: Some(16),
shards: vec![1, 32, 64, 128, 256],
num_shards_in_network: Some(257),
// node_key: Some(SecretKey::from_str("2fc0515879e52b7b73297cfd6ab3abf7c344ef84b7a90ff6f4cc19e05a198027").unwrap()),
max_message_size: Some("1024KiB".to_string()),
relay_topics: vec![String::from(&pubsub_topic)],

View File

@ -28,8 +28,11 @@ pub struct WakuNodeConfig {
#[default(Some(true))]
pub relay: Option<bool>,
pub relay_topics: Vec<String>,
#[default(vec![1])]
#[default(vec![0])]
pub shards: Vec<usize>,
#[default(Some(1))]
#[serde(rename = "numShardsInNetwork")]
pub num_shards_in_network: Option<usize>,
#[serde(skip_serializing_if = "Option::is_none")]
pub max_message_size: Option<String>,