Skip to content

Commit

Permalink
network: Remove references to unused segnet networks
Browse files Browse the repository at this point in the history
  • Loading branch information
corollari authored and braydonf committed Aug 19, 2020
1 parent 2dece4f commit 425091b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
1 change: 0 additions & 1 deletion lib/protocol/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,6 @@ Network.type = null;
Network.main = null;
Network.testnet = null;
Network.regtest = null;
Network.segnet4 = null;
Network.simnet = null;

/*
Expand Down
2 changes: 1 addition & 1 deletion lib/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
*/

/**
* One of `main`, `testnet`, `regtest`, `segnet3`, `segnet4`.
* One of `main`, `testnet`, `regtest`, `simnet`.
* @typedef {String} NetworkType
* @see {module:network.types}
* @global
Expand Down
24 changes: 0 additions & 24 deletions scripts/gen.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,6 @@ const regtest = createGenesisBlock({
nonce: 2
});

const segnet3 = createGenesisBlock({
version: 1,
time: 1452831101,
bits: 486604799,
nonce: 0
});

const segnet4 = createGenesisBlock({
version: 1,
time: 1452831101,
bits: 503447551,
nonce: 0
});

const btcd = createGenesisBlock({
version: 1,
time: 1401292357,
Expand All @@ -110,10 +96,6 @@ console.log(testnet);
console.log('');
console.log(regtest);
console.log('');
console.log(segnet3);
console.log('');
console.log(segnet4);
console.log('');
console.log('');
console.log('main hash: %s', main.rhash());
console.log('main raw: %s', main.toRaw().toString('hex'));
Expand All @@ -124,11 +106,5 @@ console.log('');
console.log('regtest hash: %s', regtest.rhash());
console.log('regtest raw: %s', regtest.toRaw().toString('hex'));
console.log('');
console.log('segnet3 hash: %s', segnet3.rhash());
console.log('segnet3 raw: %s', segnet3.toRaw().toString('hex'));
console.log('');
console.log('segnet4 hash: %s', segnet4.rhash());
console.log('segnet4 raw: %s', segnet4.toRaw().toString('hex'));
console.log('');
console.log('btcd simnet hash: %s', btcd.rhash());
console.log('btcd simnet raw: %s', btcd.toRaw().toString('hex'));

0 comments on commit 425091b

Please sign in to comment.