*Move relay identity log to swarm
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
c25e8b4aff
commit
7bd0a72113
|
@ -50,11 +50,6 @@ export async function start() {
|
|||
pack(`${config.str("domain")}:${config.uint("port")}`)
|
||||
);
|
||||
|
||||
log.info(
|
||||
"Relay Identity is",
|
||||
Buffer.from(swarm.dht.defaultKeyPair.publicKey).toString("hex")
|
||||
);
|
||||
|
||||
cron.schedule("0 * * * *", ipUpdate);
|
||||
}
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@ import {
|
|||
// @ts-ignore
|
||||
import sodium from "sodium-universal";
|
||||
import b4a from "b4a";
|
||||
import log from "loglevel";
|
||||
|
||||
const LUMEWEB = b4a.from("lumeweb");
|
||||
export const LUMEWEB_TOPIC_HASH = b4a.allocUnsafe(32);
|
||||
|
@ -46,6 +47,11 @@ export async function start() {
|
|||
await node.listen();
|
||||
node.join(LUMEWEB_TOPIC_HASH);
|
||||
|
||||
log.info(
|
||||
"Relay Identity is",
|
||||
b4a.from(node.dht.defaultKeyPair.publicKey).toString("hex")
|
||||
);
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue