diff --git a/lib/protocol/network.js b/lib/protocol/network.js index 09c7ead3..352b7ecf 100644 --- a/lib/protocol/network.js +++ b/lib/protocol/network.js @@ -29,7 +29,7 @@ function Network(options) { assert(!Network[options.type], 'Cannot create two networks.'); this.type = options.type; - this.height = options.height; + this.height = -1; this.seeds = options.seeds; this.magic = options.magic; this.port = options.port; diff --git a/lib/protocol/networks.js b/lib/protocol/networks.js index 4448d299..aaed13a3 100644 --- a/lib/protocol/networks.js +++ b/lib/protocol/networks.js @@ -43,14 +43,6 @@ main = network.main = {}; main.type = 'main'; -/** - * Expose the network height (will be updated the Chain). - * The only global variable currently in BCoin. - * @const {Number} - */ - -main.height = -1; - /** * Default seeds. * @const {String[]} @@ -475,8 +467,6 @@ testnet = network.testnet = {}; testnet.type = 'testnet'; -testnet.height = -1; - testnet.seeds = [ 'testnet-seed.alexykot.me', 'testnet-seed.bitcoin.petertodd.org', @@ -629,8 +619,6 @@ regtest = network.regtest = {}; regtest.type = 'regtest'; -regtest.height = -1; - regtest.seeds = [ '127.0.0.1' ]; @@ -776,8 +764,6 @@ segnet3 = network.segnet3 = {}; segnet3.type = 'segnet3'; -segnet3.height = -1; - segnet3.seeds = [ '104.243.38.34', '104.155.1.158', @@ -899,8 +885,6 @@ segnet4 = network.segnet4 = {}; segnet4.type = 'segnet4'; -segnet4.height = -1; - segnet4.seeds = [ '104.243.38.34', '37.34.48.17' @@ -1040,8 +1024,6 @@ simnet = network.simnet = {}; simnet.type = 'simnet'; -simnet.height = -1; - simnet.seeds = [ '127.0.0.1' ];