Update launch modules
This commit is contained in:
parent
bb21b1c436
commit
1d4f47cf4e
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"privateKey": "Replace_with_private_key",
|
"privateKey": "Replace_With_Private_Key",
|
||||||
"port": "8080",
|
"port": "8080",
|
||||||
|
|
||||||
"sql_user": "user",
|
"sql_user": "user",
|
||||||
|
|||||||
@ -25,4 +25,6 @@ const floGlobals = {
|
|||||||
delayDelta - (Interger) Maximum allowed delay from the data-time
|
delayDelta - (Interger) Maximum allowed delay from the data-time
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(typeof global !== "undefined" ? global : window).cryptocoin = floGlobals.blockchain;
|
||||||
('object' === typeof module) ? module.export = floGlobals : null;
|
('object' === typeof module) ? module.export = floGlobals : null;
|
||||||
8
src/set_globals.js
Normal file
8
src/set_globals.js
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
'use strict';
|
||||||
|
//fetch for node js (used in floBlockchainAPI.js)
|
||||||
|
global.fetch = require("node-fetch");
|
||||||
|
|
||||||
|
//Set browser parameters from parameters.json
|
||||||
|
const parameters = require('../parameters.json')
|
||||||
|
for(let p in parameters)
|
||||||
|
global[p] = parameters[p];
|
||||||
@ -1,7 +1,8 @@
|
|||||||
const config = require("../config.json")
|
const config = require("../config.json")
|
||||||
global.floGlobals = require("./floGlobals")
|
global.floGlobals = require("./floGlobals")
|
||||||
|
require('./set_globals')
|
||||||
require('./lib')
|
require('./lib')
|
||||||
require('./lib/BuildKBucket')
|
require('./kBucket')
|
||||||
require('./floCrypto')
|
require('./floCrypto')
|
||||||
require('./floBlockchainAPI')
|
require('./floBlockchainAPI')
|
||||||
const Database = require("./database")
|
const Database = require("./database")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user