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>
14 lines
286 B
JavaScript
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();
|