Skip to content

Commit

Permalink
add unsafe mode warning
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSulpiride committed Jun 8, 2023
1 parent 07ed120 commit 94d50e9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/cli/src/cmds/start/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import path, { resolve } from "node:path";
import { Server } from "api/lib/server";
import { ApiApp } from "api/lib/app";
import logger from "api/lib/logger";
import { Config } from "executor/lib/config";
import {
Namespace,
Expand Down Expand Up @@ -30,14 +31,20 @@ export async function bundlerHandler(
unsafeMode,
});
} catch (err) {
console.log("Config file not found. Proceeding with env vars...");
logger.debug("Config file not found. Proceeding with env vars...");
config = new Config({
networks: {},
testingMode,
unsafeMode,
});
}

if (unsafeMode) {
logger.warn(
"WARNING: Running in unsafe mode, skips opcode check and stake check"
);
}

let db: IDbController;

if (testingMode) {
Expand Down

0 comments on commit 94d50e9

Please sign in to comment.