Default connection to a running instance of go-waku

This commit is contained in:
Franck Royer 2021-04-22 15:43:21 +10:00
parent 06d8c2aca6
commit 25e6b1cbd3
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 4 additions and 2 deletions

View File

@ -30,9 +30,11 @@ export default function App() {
return { waku, messages };
});
// FIXME: Connect to a go-waku instance by default, temporary hack until
// we have a go-waku instance in the fleet
waku.libp2p.peerStore.addressBook.add(
PeerId.createFromB58String('QmbEnEniueE2Cetej6UkYAtvHuXuare4fSEeyvm43kdmfq'),
[multiaddr('/ip4/127.0.0.1/tcp/7777/ws')]);
PeerId.createFromB58String('16Uiu2HAmVVi6Q4j7MAKVibquW8aA27UNrA4Q8Wkz9EetGViu8ZF1'),
[multiaddr('/ip4/134.209.113.86/tcp/9001/ws')]);
} catch (e) {
console.log('Issue starting waku ', e);
}