From 5c02356595ba0935980f903de2af6087c2657f0f Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 26 Nov 2022 17:13:37 -0500 Subject: [PATCH] *start swarm in boot first, before even plugins since they kickstart the rpc singleton --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index ae87bca..73824c2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,6 +6,7 @@ import config from "./config.js"; import { loadPlugins } from "./modules/plugin.js"; import { start as startDns } from "./modules/dns.js"; import { start as startSSl } from "./modules/ssl.js"; +import { start as startSwarm } from "./modules/swarm.js"; import { generateSeedPhraseDeterministic } from "libskynet"; import * as crypto from "crypto"; @@ -20,6 +21,7 @@ if (!config.str("seed")) { } async function boot() { + await startSwarm(); await loadPlugins(); await startApp(); await startRpc();