-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,12 +76,12 @@ <h2>Store</h2> | |
createDecoder, | ||
utf8ToBytes, | ||
bytesToUtf8, | ||
} from "https://unpkg.com/@waku/[email protected].20/bundle/index.js"; | ||
} from "https://unpkg.com/@waku/[email protected].24-070b625.0/bundle/index.js"; | ||
import { | ||
enrTree, | ||
DnsNodeDiscovery, | ||
} from "https://unpkg.com/@waku/dns-[email protected].16/bundle/index.js"; | ||
import { messageHash } from "https://unpkg.com/@waku/[email protected].8/bundle/index.js"; | ||
} from "https://unpkg.com/@waku/[email protected].2-070b625.0/bundle/index.js"; | ||
import { messageHash } from "https://unpkg.com/@waku/[email protected].12-070b625.0/bundle/index.js"; | ||
|
||
const peerIdDiv = document.getElementById("peer-id"); | ||
const remotePeerIdDiv = document.getElementById("remote-peer-id"); | ||
|
@@ -121,7 +121,7 @@ <h2>Store</h2> | |
} catch (e) { | ||
console.log("Failed to find a peer", e); | ||
remoteMultiAddrDiv.value = | ||
"/dns4/node-01.ac-cn-hongkong-c.wakuv2.test.statusim.net/tcp/8000/wss/p2p/16Uiu2HAkvWiyFsgRhuJEb9JfjYxEkoHLgnUQmr1N5mKWnYjxYRVm"; | ||
"/dns4/node-01.do-ams3.waku.test.statusim.net/tcp/8000/wss/p2p/16Uiu2HAkykgaECHswi3YKJ5dMLbq2kPVCo89fcyTd38UcQD6ej5W"; | ||
} | ||
|
||
statusDiv.innerHTML = "<p>Creating Waku node.</p>"; | ||
|
@@ -149,7 +149,7 @@ <h2>Store</h2> | |
}; | ||
|
||
// Refreshes list of connected peers each time a new one is detected | ||
node.store.addLibp2pEventListener("peer:connect", async (event) => { | ||
node.store.protocol.addLibp2pEventListener("peer:connect", async (event) => { | ||
const peerId = event.detail; | ||
console.log(`Peer connected with peer id: ${peerId}`); | ||
// Wait half a second after receiving event for peer to show up in peer store | ||
|