|
|
@ -951,7 +951,7 @@ HK.initializeValidationWorkers = function (Env) {
|
|
|
|
worker.on('message', function (res) {
|
|
|
|
worker.on('message', function (res) {
|
|
|
|
if (!res || !res.txid) { return; }
|
|
|
|
if (!res || !res.txid) { return; }
|
|
|
|
//console.log(+new Date(), "Received verification response");
|
|
|
|
//console.log(+new Date(), "Received verification response");
|
|
|
|
response.handle(res.txid, [res.error]);
|
|
|
|
response.handle(res.txid, [res.error, res.value]);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// Spawn a new process in one ends
|
|
|
|
// Spawn a new process in one ends
|
|
|
|
worker.on('exit', function () {
|
|
|
|
worker.on('exit', function () {
|
|
|
@ -1001,6 +1001,13 @@ HK.initializeValidationWorkers = function (Env) {
|
|
|
|
key: publicKey,
|
|
|
|
key: publicKey,
|
|
|
|
}, cb);
|
|
|
|
}, cb);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Env.hashChannelList = function (channels, cb) {
|
|
|
|
|
|
|
|
send({
|
|
|
|
|
|
|
|
command: 'HASH_CHANNEL_LIST',
|
|
|
|
|
|
|
|
channels: channels,
|
|
|
|
|
|
|
|
}, cb);
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/* onChannelMessage
|
|
|
|
/* onChannelMessage
|
|
|
|