calculate pin list checksums in a worker

This commit is contained in:
ansuz
2020-03-25 18:37:42 -04:00
parent 51e6fe1cce
commit 14feef1757
3 changed files with 28 additions and 18 deletions

View File

@@ -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