-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.js
73 lines (67 loc) · 3.27 KB
/
settings.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
var Binary = require('binary');
var Bitcoin = require('bitcoinjs');
var Bootstrapper = require('./bootstrap.js').Bootstrapper;
var hex = Bitcoin.Util.decodeHex;
var cfg = exports.Settings = new Bitcoin.Settings();
// Override defaults
cfg.network.port = 8334;
cfg.network.magicBytes = hex('f9beb4fe');
cfg.network.bootstrap = [
new Bootstrapper([0x58cea445, 0x2b562f4e, 0x291f20b2]),
new Bootstrapper(['88.190.28.114', '198.23.149.232', '204.246.67.102', '61.164.151.77', '81.7.8.133'])
];
cfg.network.altChain = true;
cfg.network.auxPOWFlag = 1 << 8;
cfg.network.auxPOWStart = 19200;
cfg.network.auxPOWChain = 1;
cfg.network.fullRetargetStart = 19200; // Full retarget checkpoint to fix the "time travel" bug
// 19200: d8a7c3e01e First block to allow merged mining (and does use it)
// 24192: 71b91c98a8 First block to use "full retarget" size
// 26972: cdd6eb3877 First block with a reversed "parent block" hash entry; this isn't a validated field, so many others down the chain have it reversed too
// 29812: a3d2c18acc First block to use merged mining with more than one auxiliary chain
cfg.network.genesisBlock = {
'height': 0,
'nonce': 0xa21ea192,
'version': 1,
'hash': hex('70c7a9f0a2fb3d48e635a70d5b157c807e58c8fb45eb2c5e2cb7620000000000'),
'prev_hash': new Buffer(32).clear(),
'timestamp': 1303000001,
'merkle_root': hex('0dcbd3e6f061215bf3b3383c8ce2ec201bc65acde32595449ac86890bd2dc641'),
'bits': 0x1c007fff
};
cfg.network.genesisBlockTx = {
'outs': [{
'v': hex('00F2052A01'), // 50 BTC
's': Binary.put()
.word8(65) // 65 bytes of data follow
.put(hex('04b620369050cd899ffbbc4e8ee51e8c4534a855bb463439d63d235d4779685d8b6f4870a238cf365ac94fa13ef9a2a22cd99d0d5ee86dcabcafce36c7acf43ce5'))
.word8(0xAC) // OP_CHECKSIG
.buffer()
}],
'lock_time': 0,
'version': 1,
'hash': hex('a6df68c2e882cc6406a477b90e58cd01d102032a8a5e9f49c5e17d44dbef8b5e'),
'ins': [{
'q': hex('00F2052A01'),
'o': hex("000000000000000000000000000000000000" +
"0000000000000000000000000000FFFFFFFF"),
's': Binary.put()
.put(hex('04ff7f001c'))
.put(hex('020a024b'))
.put(new Buffer('... choose what comes next. Lives of your own, or a return to chains. -- V', 'ascii'))
.buffer()
}]
};
cfg.network.checkpoints = [
{ height: 2016, hash: 0x0000000000660bad0d9fbde55ba7ee14ddf766ed5f527e3fbca523ac11460b92},
{ height: 4032, hash: 0x0000000000493b5696ad482deb79da835fe2385304b841beef1938655ddbc411},
{ height: 6048, hash: 0x000000000027939a2e1d8bb63f36c47da858e56d570f143e67e85068943470c9},
{ height: 8064, hash: 0x000000000003a01f708da7396e54d081701ea406ed163e519589717d8b7c95a5},
{ height: 10080, hash: 0x00000000000fed3899f818b2228b4f01b9a0a7eeee907abd172852df71c64b06},
{ height: 12096, hash: 0x0000000000006c06988ff361f124314f9f4bb45b6997d90a7ee4cedf434c670f},
{ height: 14112, hash: 0x00000000000045d95e0588c47c17d593c7b5cb4fb1e56213d1b3843c1773df2b},
{ height: 16128, hash: 0x000000000001d9964f9483f9096cf9d6c6c2886ed1e5dec95ad2aeec3ce72fa9},
{ height: 18940, hash: 0x00000000000087f7fc0c8085217503ba86f796fa4984f7e5a08b6c4c12906c05},
{ height: 30240, hash: 0xe1c8c862ff342358384d4c22fa6ea5f669f3e1cdcf34111f8017371c3c0be1da},
{ height: 57000, hash: 0xaa3ec60168a0200799e362e2b572ee01f3c3852030d07d036e0aa884ec61f203}
];