Skip to content

Commit

Permalink
refactor: remove waku discovery enr from Radio
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-eiger committed Dec 12, 2023
1 parent 74db359 commit de9f4e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions subgraph-radio/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,6 @@ impl Config {
) -> Result<GraphcastAgentConfig, GraphcastAgentError> {
let wallet_key = self.wallet_input().unwrap().to_string();
let topics = self.radio_setup().topics.clone();
let mut discv5_enrs = self.waku().discv5_enrs.clone().unwrap_or_default();
// Discovery network
discv5_enrs.push("enr:-P-4QJI8tS1WTdIQxq_yIrD05oIIW1Xg-tm_qfP0CHfJGnp9dfr6ttQJmHwTNxGEl4Le8Q7YHcmi-kXTtphxFysS11oBgmlkgnY0gmlwhLymh5GKbXVsdGlhZGRyc7hgAC02KG5vZGUtMDEuZG8tYW1zMy53YWt1djIucHJvZC5zdGF0dXNpbS5uZXQGdl8ALzYobm9kZS0wMS5kby1hbXMzLndha3V2Mi5wcm9kLnN0YXR1c2ltLm5ldAYfQN4DiXNlY3AyNTZrMaEDbl1X_zJIw3EAJGtmHMVn4Z2xhpSoUaP5ElsHKCv7hlWDdGNwgnZfg3VkcIIjKIV3YWt1Mg8".to_string());

GraphcastAgentConfig::new(
wallet_key,
Expand All @@ -166,7 +163,7 @@ impl Config {
self.waku().waku_port.clone(),
self.waku().waku_addr.clone(),
self.waku().filter_protocol,
Some(discv5_enrs),
self.waku().discv5_enrs.clone(),
self.waku().discv5_port,
)
.await
Expand Down

0 comments on commit de9f4e1

Please sign in to comment.