calculate pin list checksums in a worker
This commit is contained in:
@@ -951,7 +951,7 @@ HK.initializeValidationWorkers = function (Env) {
|
||||
worker.on('message', function (res) {
|
||||
if (!res || !res.txid) { return; }
|
||||
//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
|
||||
worker.on('exit', function () {
|
||||
@@ -1001,6 +1001,13 @@ HK.initializeValidationWorkers = function (Env) {
|
||||
key: publicKey,
|
||||
}, cb);
|
||||
};
|
||||
|
||||
Env.hashChannelList = function (channels, cb) {
|
||||
send({
|
||||
command: 'HASH_CHANNEL_LIST',
|
||||
channels: channels,
|
||||
}, cb);
|
||||
};
|
||||
};
|
||||
|
||||
/* onChannelMessage
|
||||
|
||||
Reference in New Issue
Block a user