Skip to content

Commit 8c31495

Browse files
committed
refactor(network): update gossip topic format in NetworkConfig
- Changed the format of gossip topics in NetworkConfig from hyphenated to slashed notation for improved clarity and consistency. - Added a new priority block gossip topic to enhance the network's communication structure.
1 parent 165ec51 commit 8c31495

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/src/actors_v2/network/config.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ impl Default for NetworkConfig {
5353
max_connections: 1000,
5454
connection_timeout: Duration::from_secs(30),
5555
gossip_topics: vec![
56-
"alys-blocks".to_string(),
57-
"alys-transactions".to_string(),
58-
"alys-auxpow".to_string(), // Phase 4: AuxPoW mining coordination
56+
"alys/blocks".to_string(), // Regular block gossip
57+
"alys/blocks/priority".to_string(), // Priority block gossip
58+
"alys/transactions".to_string(), // Transaction gossip
59+
"alys/auxpow".to_string(), // Phase 4: AuxPoW mining coordination
5960
],
6061
message_size_limit: 1024 * 1024, // 1MB
6162
discovery_interval: Duration::from_secs(60),

0 commit comments

Comments
 (0)