Fixed missing network object in messages.
This commit is contained in:
parent
dfdce81287
commit
272fb542af
@ -8,6 +8,7 @@ var log = index.log;
|
|||||||
var BaseService = require('../../service');
|
var BaseService = require('../../service');
|
||||||
var assert = require('assert');
|
var assert = require('assert');
|
||||||
var Bcoin = require('./bcoin');
|
var Bcoin = require('./bcoin');
|
||||||
|
var Networks = require('bitcore-lib').Networks;
|
||||||
|
|
||||||
var P2P = function(options) {
|
var P2P = function(options) {
|
||||||
|
|
||||||
@ -209,7 +210,7 @@ P2P.prototype._initP2P = function() {
|
|||||||
this._maxPeers = this._options.maxPeers || 60;
|
this._maxPeers = this._options.maxPeers || 60;
|
||||||
this._minPeers = this._options.minPeers || 0;
|
this._minPeers = this._options.minPeers || 0;
|
||||||
this._configPeers = this._options.peers;
|
this._configPeers = this._options.peers;
|
||||||
this.messages = new p2p.Messages({ network: this.node.network });
|
this.messages = new p2p.Messages({ network: Networks.get(this.node.network) });
|
||||||
this._peerHeights = [];
|
this._peerHeights = [];
|
||||||
this._peers = [];
|
this._peers = [];
|
||||||
this._peerIndex = 0;
|
this._peerIndex = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user