itns-sidechain/lib/workers/worker.js
Mark Tyneway f8df194772
worker: use specific process title
The workers will now have the title
`hsd-worker` when they run, instead
of the generic `node` title.

Port of bcoin commit:
ace4a08ebfbd4179c24b7c2fac49a68c52818372

Co-authored-by: Mark Tyneway <mark@purse.io>
Co-authored-by: Braydon Fuller <braydon@purse.io>
2019-10-15 13:30:32 -07:00

14 lines
286 B
JavaScript

/*!
* worker.js - worker thread/process for hsd
* Copyright (c) 2017-2018, Christopher Jeffrey (MIT License).
* https://github.com/handshake-org/hsd
*/
'use strict';
const Master = require('./master');
const server = new Master();
process.title = 'hsd-worker';
server.listen();