Ready for first debug
This commit is contained in:
1 parent
62726d8faa
commit
a52e9aa0a9
11 files changed
+59
-17
No files matched your search
@@ -21,6 +21,10 @@ The SA object is accesible everywhere at the Superalgos Network.
|
||||
It provides access to all modules built for Superalgos in general.
|
||||
*/
|
||||
global.SA = {}
|
||||
/* Load Environment Variables */
|
||||
let ENVIRONMENT = require('../Environment.js');
|
||||
let ENVIRONMENT_MODULE = ENVIRONMENT.newEnvironment()
|
||||
global.env = ENVIRONMENT_MODULE
|
||||
/*
|
||||
First thing is to load the project schema file.
|
||||
*/
|
||||
@@ -32,6 +36,10 @@ let MULTI_PROJECT = require('../MultiProject.js');
|
||||
let MULTI_PROJECT_MODULE = MULTI_PROJECT.newMultiProject()
|
||||
MULTI_PROJECT_MODULE.initialize(CL, 'CL')
|
||||
MULTI_PROJECT_MODULE.initialize(SA, 'SA')
|
||||
/*
|
||||
Node Modules Dependencies
|
||||
*/
|
||||
NT.nodeModules.web3 = require('web3')
|
||||
|
||||
let socialGraphService = NT.modules.socialGraph.newSocialGraph()
|
||||
socialGraphService.initialize()
|
||||
@@ -45,13 +45,13 @@ exports.newClientInterface = function newClientInterface() {
|
||||
*/
|
||||
|
||||
let eventReceived = JSON.parse(eventMessage)
|
||||
if (NT.globals.memory.EVENTS.get(eventReceived.eventId) !== undefined) {
|
||||
if (NT.globals.memory.maps.EVENTS.get(eventReceived.eventId) !== undefined) {
|
||||
throw ('Event Already Exists.')
|
||||
}
|
||||
|
||||
let event = NT.modules.event.newNetworkModulesEvent()
|
||||
event.initialize(eventReceived)
|
||||
NT.globals.memory.EVENTS.set(eventReceived.eventId, event)
|
||||
NT.globals.memory.maps.EVENTS.set(eventReceived.eventId, event)
|
||||
}
|
||||
|
||||
function queryReceived(queryMessage) {
|
||||
|
||||
Reference in new issue
Block a user