Skip to content

Commit 9eba73e

Browse files
committed
refactor(app): update gossip topics for Alys V2
- Changed gossip topics to a more structured naming convention for clarity and organization. - Updated topics to include "alys/blocks", "alys/blocks/priority", "alys/transactions", and "alys/auxpow" for better categorization of messages. - This refactor aims to enhance the readability and maintainability of the gossip configuration.
1 parent a6af16b commit 9eba73e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/src/app.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,10 @@ impl App {
532532
max_outbound_connections: 500,
533533
connection_timeout: Duration::from_secs(30),
534534
gossip_topics: vec![
535-
"alys-v2-blocks".to_string(),
536-
"alys-v2-transactions".to_string(),
537-
"alys-v2-auxpow".to_string(),
535+
"alys/blocks".to_string(), // Regular block gossip
536+
"alys/blocks/priority".to_string(), // Priority block gossip
537+
"alys/transactions".to_string(), // Transaction gossip
538+
"alys/auxpow".to_string(), // AuxPoW mining coordination
538539
],
539540
message_size_limit: 4 * 1024 * 1024, // 4MB
540541
discovery_interval: Duration::from_secs(60),

0 commit comments

Comments
 (0)