forked from bitpay/bitcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
networks.js
59 lines (56 loc) · 1.5 KB
/
networks.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
var Put = require('bufferput');
var buffertools = require('buffertools');
var hex = function(hex) {
return new Buffer(hex, 'hex');
};
exports.livenet = {
name: 'livenet',
magic: hex('c0c0c0c0'),
addressVersion: 0x1E,
privKeyVersion: 158,
P2SHVersion: 5,
hkeyPublicVersion: 0x0488b21e,
hkeyPrivateVersion: 0x0488ade4,
genesisBlock: {
hash: hex('9156352C1818B32E90C9E792EFD6A11A82FE7956A630F03BBEE236CEDAE3911A'),
merkle_root: hex('696AD20E2DD4365C7459B4A4A5AF743D5E92C6DA3229E6532CD605F6533F2A5B'),
height: 0,
nonce: 99943,
version: 1,
prev_hash: buffertools.fill(new Buffer(32), 0),
timestamp: 1386325540,
bits: 504365040,
},
dnsSeeds: [
'seed.dogecoin.com',
'seed.mophides.com',
'seed.dglibrary.org',
'seed.dogechain.info'
],
defaultClientPort: 22556
};
exports.mainnet = exports.livenet;
exports.testnet = {
name: 'testnet',
magic: hex('fcc1b7dc'),
addressVersion: 0x71,
privKeyVersion: 241,
P2SHVersion: 196,
hkeyPublicVersion: 0x043587cf,
hkeyPrivateVersion: 0x04358394,
genesisBlock: {
hash: hex('9E555073D0C4F36456DB8951F449704D544D2826D9AA60636B40374626780ABB'),
merkle_root: hex('696AD20E2DD4365C7459B4A4A5AF743D5E92C6DA3229E6532CD605F6533F2A5B'),
height: 0,
nonce: 997879,
version: 1,
prev_hash: buffertools.fill(new Buffer(32), 0),
timestamp: 1391503289,
bits: 504365040,
},
dnsSeeds: [
'testdoge-seed.lionservers.de',
'testdoge-seed-static.lionservers.de'
],
defaultClientPort: 44556
};