network: remove net def height property.

This commit is contained in:
Christopher Jeffrey 2016-09-08 18:10:31 -07:00
parent eb74d70e84
commit da054ec3f6
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 1 additions and 19 deletions

View File

@ -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;

View File

@ -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'
];