Ready to Debug
This commit is contained in:
1 parent
65a141da5c
commit
4f4539934c
2 files changed
+12
-2
No files matched your search
@@ -40,7 +40,7 @@ exports.newNetworkModulesHttpNetworkClient = function newNetworkModulesHttpNetwo
|
||||
function sendMessage(message) {
|
||||
return new Promise(sendHttpMessage)
|
||||
|
||||
function sendHttpMessage(resolve, reject) {
|
||||
async function sendHttpMessage(resolve, reject) {
|
||||
try {
|
||||
let signature = web3.eth.accounts.sign(JSON.stringify(message), SA.secrets.map.get(thisObject.p2pNetworkClientCodeName).privateKey)
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@ exports.newTradingSignalsModulesOutgoingTradingSignals = function (processIndex)
|
||||
return thisObject
|
||||
|
||||
function initialize() {
|
||||
|
||||
}
|
||||
|
||||
function finalize() {
|
||||
@@ -18,5 +17,16 @@ exports.newTradingSignalsModulesOutgoingTradingSignals = function (processIndex)
|
||||
function broadcastSignal(node) {
|
||||
if (node === undefined) { return }
|
||||
if (node.outgoingSignals === undefined) { return }
|
||||
if (node.outgoingSignals.signalReference === undefined) { return }
|
||||
if (node.outgoingSignals.signalReference.referenceParent === undefined) { return }
|
||||
|
||||
let signalMessage = {
|
||||
signalId: SA.projects.foundations.utilities.miscellaneousFunctions.genereteUniqueId(),
|
||||
tradingSystemNodeType: node.type,
|
||||
socialTradingBotNodeType: node.outgoingSignals.signalReference.referenceParent.id,
|
||||
socialTradingBotNodeId: node.outgoingSignals.signalReference.referenceParent.id
|
||||
}
|
||||
|
||||
TS.projects.foundations.globals.taskConstants.P2P_NETWORK.p2pNetworkStart.sendMessage(signalMessage)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user