mirror of https://github.com/waku-org/waku-lab.git
chore: update to latest RC (#56)
This commit is contained in:
parent
2316eaada6
commit
f60c456e84
|
@ -76,12 +76,12 @@
|
||||||
createDecoder,
|
createDecoder,
|
||||||
utf8ToBytes,
|
utf8ToBytes,
|
||||||
bytesToUtf8,
|
bytesToUtf8,
|
||||||
} from "https://unpkg.com/@waku/sdk@0.0.20/bundle/index.js";
|
} from "https://unpkg.com/@waku/sdk@0.0.24-070b625.0/bundle/index.js";
|
||||||
import {
|
import {
|
||||||
enrTree,
|
enrTree,
|
||||||
DnsNodeDiscovery,
|
DnsNodeDiscovery,
|
||||||
} from "https://unpkg.com/@waku/dns-discovery@0.0.16/bundle/index.js";
|
} from "https://unpkg.com/@waku/discovery@0.0.2-070b625.0/bundle/index.js";
|
||||||
import { messageHash } from "https://unpkg.com/@waku/message-hash@0.1.8/bundle/index.js";
|
import { messageHash } from "https://unpkg.com/@waku/message-hash@0.1.12-070b625.0/bundle/index.js";
|
||||||
|
|
||||||
const peerIdDiv = document.getElementById("peer-id");
|
const peerIdDiv = document.getElementById("peer-id");
|
||||||
const remotePeerIdDiv = document.getElementById("remote-peer-id");
|
const remotePeerIdDiv = document.getElementById("remote-peer-id");
|
||||||
|
@ -121,7 +121,7 @@
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("Failed to find a peer", e);
|
console.log("Failed to find a peer", e);
|
||||||
remoteMultiAddrDiv.value =
|
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>";
|
statusDiv.innerHTML = "<p>Creating Waku node.</p>";
|
||||||
|
@ -149,7 +149,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
// Refreshes list of connected peers each time a new one is detected
|
// 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;
|
const peerId = event.detail;
|
||||||
console.log(`Peer connected with peer id: ${peerId}`);
|
console.log(`Peer connected with peer id: ${peerId}`);
|
||||||
// Wait half a second after receiving event for peer to show up in peer store
|
// Wait half a second after receiving event for peer to show up in peer store
|
||||||
|
|
Loading…
Reference in New Issue