|
|
|
@ -1,3 +1,5 @@
|
|
|
|
|
/* jshint esversion: 6 */
|
|
|
|
|
/* global process */
|
|
|
|
|
const Nacl = require('tweetnacl/nacl-fast');
|
|
|
|
|
|
|
|
|
|
// XXX npm "os" and "child_process"
|
|
|
|
@ -7,7 +9,7 @@ const Nacl = require('tweetnacl/nacl-fast');
|
|
|
|
|
console.log('New child process', process.pid);
|
|
|
|
|
|
|
|
|
|
process.on('message', function (data) {
|
|
|
|
|
console.log('In process', process.pid)
|
|
|
|
|
console.log('In process', process.pid);
|
|
|
|
|
console.log(+new Date(), "Message received by subprocess");
|
|
|
|
|
if (!data || !data.key || !data.msg || !data.txid) {
|
|
|
|
|
process.send({
|
|
|
|
|