*Move relay identity log to swarm
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Derrick Hammer 2022-12-06 17:03:30 -05:00
parent c25e8b4aff
commit 7bd0a72113
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 6 additions and 5 deletions

View File

@ -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);
}

View File

@ -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;
}