Add bzmq plugin to allow zmq access
This commit is contained in:
parent
06bb34123a
commit
6c6e0ad446
@ -3,6 +3,7 @@
|
||||
var index = require('../../');
|
||||
var log = index.log;
|
||||
var bcoin = require('fcoin');
|
||||
var bzmq = require('bzmq');
|
||||
|
||||
var Bcoin = function(options) {
|
||||
this._config = this._getConfig(options);
|
||||
@ -12,6 +13,10 @@ Bcoin.prototype.start = function(callback) {
|
||||
var self = this;
|
||||
self._bcoin = bcoin.fullnode(self._config);
|
||||
|
||||
// bzmq allows zmq connections to fcoin
|
||||
self._bcoin.use(bzmq)
|
||||
self._bzmq = self._bcoin.require('bzmq')
|
||||
|
||||
log.info('Starting Fcoin full node...');
|
||||
|
||||
self._bcoin.open().then(function() {
|
||||
|
||||
1662
package-lock.json
generated
1662
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -32,6 +32,7 @@
|
||||
"bitcoind-rpc": "^0.7.2",
|
||||
"bn.js": "^4.11.8",
|
||||
"body-parser": "^1.13.3",
|
||||
"bzmq": "^0.1.2",
|
||||
"colors": "^1.1.2",
|
||||
"commander": "^2.8.1",
|
||||
"errno": "^0.1.4",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user