3 Network Nodes Running in Debug Mode

This commit is contained in:
Luis Fernando Molina committed 2021-11-05 12:44:58 +01:00
1 parent e98b1fbd6c
commit 48c35d8148
12 files changed
+129 -14

No files matched your search

+5 -1
View File
@@ -10,7 +10,7 @@ exports.newNetworkRoot = function newNetworkRoot() {
return thisObject
async function run() {
async function run(debugSettings) {
/*
The NT object is accessible everywhere at the Superalgos Network.
It provides access to all modules built for this Network.
@@ -25,6 +25,10 @@ exports.newNetworkRoot = function newNetworkRoot() {
let ENVIRONMENT = require('./Environment.js');
let ENVIRONMENT_MODULE = ENVIRONMENT.newEnvironment()
global.env = ENVIRONMENT_MODULE
if (debugSettings !== undefined && debugSettings.P2P_NETWORK_NODE_SIGNING_ACCOUNT !== undefined) {
global.env.P2P_NETWORK_NODE_SIGNING_ACCOUNT = debugSettings.P2P_NETWORK_NODE_SIGNING_ACCOUNT
}
/*
First thing is to load the project schema file.
*/