diff --git a/chaincfg/params.go b/chaincfg/params.go index a6d8d3e5..f2dfc00d 100644 --- a/chaincfg/params.go +++ b/chaincfg/params.go @@ -25,8 +25,8 @@ var ( bigOne = big.NewInt(1) // mainPowLimit is the highest proof of work value a Bitcoin block can - // have for the main network. It is the value 2^224 - 1. - mainPowLimit = new(big.Int).Sub(new(big.Int).Lsh(bigOne, 224), bigOne) + // have for the main network. It is the value 2^240 - 1. + mainPowLimit = new(big.Int).Sub(new(big.Int).Lsh(bigOne, 240), bigOne) // regressionPowLimit is the highest proof of work value a Bitcoin block // can have for the regression test network. It is the value 2^255 - 1. @@ -34,8 +34,8 @@ var ( // testNet3PowLimit is the highest proof of work value a Bitcoin block // can have for the test network (version 3). It is the value - // 2^224 - 1. - testNet3PowLimit = new(big.Int).Sub(new(big.Int).Lsh(bigOne, 224), bigOne) + // 2^240 - 1. + testNet3PowLimit = new(big.Int).Sub(new(big.Int).Lsh(bigOne, 240), bigOne) // simNetPowLimit is the highest proof of work value a Bitcoin block // can have for the simulation test network. It is the value 2^255 - 1. @@ -256,60 +256,35 @@ type Params struct { var MainNetParams = Params{ Name: "mainnet", Net: wire.MainNet, - DefaultPort: "8333", + DefaultPort: "9246", DNSSeeds: []DNSSeed{ - {"seed.bitcoin.sipa.be", true}, - {"dnsseed.bluematt.me", true}, - {"dnsseed.bitcoin.dashjr.org", false}, - {"seed.bitcoinstats.com", true}, - {"seed.bitnodes.io", false}, - {"seed.bitcoin.jonasschnelli.ch", true}, + {"dnsseed1.lbry.com", true}, + {"dnsseed2.lbry.com", true}, + {"dnsseed3.lbry.com", true}, + {"seed.lbry.grin.io", true}, + {"seed.allaboutlbc.com", true}, }, // Chain parameters GenesisBlock: &genesisBlock, GenesisHash: &genesisHash, PowLimit: mainPowLimit, - PowLimitBits: 0x1d00ffff, - BIP0034Height: 227931, // 000000000000024b89b42a942fe0d9fea3bb44ab7bd1b19115dd6a759c0808b8 + PowLimitBits: 0x1f00ffff, + BIP0034Height: 1, // 000000000000024b89b42a942fe0d9fea3bb44ab7bd1b19115dd6a759c0808b8 BIP0065Height: 388381, // 000000000000000004c2b624ed5d7756c508d90fd0da2c7c679febfa6c4735f0 BIP0066Height: 363725, // 00000000000000000379eaa19dce8c9b722d46ae6a57c2f1a988119488b50931 CoinbaseMaturity: 100, - SubsidyReductionInterval: 210000, - TargetTimespan: time.Hour * 24 * 14, // 14 days - TargetTimePerBlock: time.Minute * 10, // 10 minutes - RetargetAdjustmentFactor: 4, // 25% less, 400% more + SubsidyReductionInterval: 1 << 5, + TargetTimespan: time.Second * 150, // retarget every block + TargetTimePerBlock: time.Second * 150, // 150 seconds + RetargetAdjustmentFactor: 4, // 25% less, 400% more ReduceMinDifficulty: false, MinDiffReductionTime: 0, GenerateSupported: false, // Checkpoints ordered from oldest to newest. Checkpoints: []Checkpoint{ - {11111, newHashFromStr("0000000069e244f73d78e8fd29ba2fd2ed618bd6fa2ee92559f542fdb26e7c1d")}, - {33333, newHashFromStr("000000002dd5588a74784eaa7ab0507a18ad16a236e7b1ce69f00d7ddfb5d0a6")}, - {74000, newHashFromStr("0000000000573993a3c9e41ce34471c079dcf5f52a0e824a81e7f953b8661a20")}, - {105000, newHashFromStr("00000000000291ce28027faea320c8d2b054b2e0fe44a773f3eefb151d6bdc97")}, - {134444, newHashFromStr("00000000000005b12ffd4cd315cd34ffd4a594f430ac814c91184a0d42d2b0fe")}, - {168000, newHashFromStr("000000000000099e61ea72015e79632f216fe6cb33d7899acb35b75c8303b763")}, - {193000, newHashFromStr("000000000000059f452a5f7340de6682a977387c17010ff6e6c3bd83ca8b1317")}, - {210000, newHashFromStr("000000000000048b95347e83192f69cf0366076336c639f9b7228e9ba171342e")}, - {216116, newHashFromStr("00000000000001b4f4b433e81ee46494af945cf96014816a4e2370f11b23df4e")}, - {225430, newHashFromStr("00000000000001c108384350f74090433e7fcf79a606b8e797f065b130575932")}, - {250000, newHashFromStr("000000000000003887df1f29024b06fc2200b55f8af8f35453d7be294df2d214")}, - {267300, newHashFromStr("000000000000000a83fbd660e918f218bf37edd92b748ad940483c7c116179ac")}, - {279000, newHashFromStr("0000000000000001ae8c72a0b0c301f67e3afca10e819efa9041e458e9bd7e40")}, - {300255, newHashFromStr("0000000000000000162804527c6e9b9f0563a280525f9d08c12041def0a0f3b2")}, - {319400, newHashFromStr("000000000000000021c6052e9becade189495d1c539aa37c58917305fd15f13b")}, - {343185, newHashFromStr("0000000000000000072b8bf361d01a6ba7d445dd024203fafc78768ed4368554")}, - {352940, newHashFromStr("000000000000000010755df42dba556bb72be6a32f3ce0b6941ce4430152c9ff")}, - {382320, newHashFromStr("00000000000000000a8dc6ed5b133d0eb2fd6af56203e4159789b092defd8ab2")}, - {400000, newHashFromStr("000000000000000004ec466ce4732fe6f1ed1cddc2ed4b328fff5224276e3f6f")}, - {430000, newHashFromStr("000000000000000001868b2bb3a285f3cc6b33ea234eb70facf4dcdf22186b87")}, - {460000, newHashFromStr("000000000000000000ef751bbce8e744ad303c47ece06c8d863e4d417efc258c")}, - {490000, newHashFromStr("000000000000000000de069137b17b8d5a3dfbd5b145b2dcfb203f15d0c4de90")}, - {520000, newHashFromStr("0000000000000000000d26984c0229c9f6962dc74db0a6d525f2f1640396f69c")}, - {550000, newHashFromStr("000000000000000000223b7a2298fb1c6c75fb0efc28a4c56853ff4112ec6bc9")}, - {560000, newHashFromStr("0000000000000000002c7b276daf6efb2b6aa68e2ce3be67ef925b3264ae7122")}, + // {4000, newHashFromStr("a6bbb48f5343eb9b0287c22f3ea8b29f36cf10794a37f8a925a894d6f4519913")}, }, // Consensus rule change deployments. @@ -331,8 +306,8 @@ var MainNetParams = Params{ }, DeploymentSegwit: { BitNumber: 1, - StartTime: 1479168000, // November 15, 2016 UTC - ExpireTime: 1510704000, // November 15, 2017 UTC. + StartTime: math.MaxInt64, // Not in the roadmap + ExpireTime: math.MaxInt64, // Not in the roadmap }, }, @@ -344,15 +319,15 @@ var MainNetParams = Params{ Bech32HRPSegwit: "bc", // always bc for main net // Address encoding magics - PubKeyHashAddrID: 0x00, // starts with 1 - ScriptHashAddrID: 0x05, // starts with 3 - PrivateKeyID: 0x80, // starts with 5 (uncompressed) or K (compressed) + PubKeyHashAddrID: 0x55, // starts with 1 + ScriptHashAddrID: 0x7a, // starts with 3 + PrivateKeyID: 0x1c, // starts with 5 (uncompressed) or K (compressed) WitnessPubKeyHashAddrID: 0x06, // starts with p2 WitnessScriptHashAddrID: 0x0A, // starts with 7Xh // BIP32 hierarchical deterministic extended key magics - HDPrivateKeyID: [4]byte{0x04, 0x88, 0xad, 0xe4}, // starts with xprv - HDPublicKeyID: [4]byte{0x04, 0x88, 0xb2, 0x1e}, // starts with xpub + HDPrivateKeyID: [4]byte{0x01, 0x9c, 0x35, 0x4f}, // starts with xprv + HDPublicKeyID: [4]byte{0x01, 0x9c, 0x31, 0x18}, // starts with xpub // BIP44 coin type used in the hierarchical deterministic path for // address generation. @@ -365,7 +340,7 @@ var MainNetParams = Params{ var RegressionNetParams = Params{ Name: "regtest", Net: wire.TestNet, - DefaultPort: "18444", + DefaultPort: "29246", DNSSeeds: []DNSSeed{}, // Chain parameters @@ -377,11 +352,11 @@ var RegressionNetParams = Params{ BIP0034Height: 100000000, // Not active - Permit ver 1 blocks BIP0065Height: 1351, // Used by regression tests BIP0066Height: 1251, // Used by regression tests - SubsidyReductionInterval: 150, - TargetTimespan: time.Hour * 24 * 14, // 14 days - TargetTimePerBlock: time.Minute * 10, // 10 minutes - RetargetAdjustmentFactor: 4, // 25% less, 400% more - ReduceMinDifficulty: true, + SubsidyReductionInterval: 1 << 5, + TargetTimespan: time.Second, + TargetTimePerBlock: time.Second, + RetargetAdjustmentFactor: 4, // 25% less, 400% more + ReduceMinDifficulty: false, MinDiffReductionTime: time.Minute * 20, // TargetTimePerBlock * 2 GenerateSupported: true, @@ -407,8 +382,8 @@ var RegressionNetParams = Params{ }, DeploymentSegwit: { BitNumber: 1, - StartTime: 0, // Always available for vote - ExpireTime: math.MaxInt64, // Never expires. + StartTime: math.MaxInt64, // Not in the roadmap + ExpireTime: math.MaxInt64, // Not in the roadmap }, }, @@ -439,12 +414,10 @@ var RegressionNetParams = Params{ var TestNet3Params = Params{ Name: "testnet3", Net: wire.TestNet3, - DefaultPort: "18333", + DefaultPort: "19246", DNSSeeds: []DNSSeed{ - {"testnet-seed.bitcoin.jonasschnelli.ch", true}, - {"testnet-seed.bitcoin.schildbach.de", false}, - {"seed.tbtc.petertodd.org", true}, - {"testnet-seed.bluematt.me", false}, + {"testdnsseed1.lbry.io", true}, + {"testdnsseed2.lbry.io", true}, }, // Chain parameters @@ -466,20 +439,7 @@ var TestNet3Params = Params{ // Checkpoints ordered from oldest to newest. Checkpoints: []Checkpoint{ - {546, newHashFromStr("000000002a936ca763904c3c35fce2f3556c559c0214345d31b1bcebf76acb70")}, - {100000, newHashFromStr("00000000009e2958c15ff9290d571bf9459e93b19765c6801ddeccadbb160a1e")}, - {200000, newHashFromStr("0000000000287bffd321963ef05feab753ebe274e1d78b2fd4e2bfe9ad3aa6f2")}, - {300001, newHashFromStr("0000000000004829474748f3d1bc8fcf893c88be255e6d7f571c548aff57abf4")}, - {400002, newHashFromStr("0000000005e2c73b8ecb82ae2dbc2e8274614ebad7172b53528aba7501f5a089")}, - {500011, newHashFromStr("00000000000929f63977fbac92ff570a9bd9e7715401ee96f2848f7b07750b02")}, - {600002, newHashFromStr("000000000001f471389afd6ee94dcace5ccc44adc18e8bff402443f034b07240")}, - {700000, newHashFromStr("000000000000406178b12a4dea3b27e13b3c4fe4510994fd667d7c1e6a3f4dc1")}, - {800010, newHashFromStr("000000000017ed35296433190b6829db01e657d80631d43f5983fa403bfdb4c1")}, - {900000, newHashFromStr("0000000000356f8d8924556e765b7a94aaebc6b5c8685dcfa2b1ee8b41acd89b")}, - {1000007, newHashFromStr("00000000001ccb893d8a1f25b70ad173ce955e5f50124261bbbc50379a612ddf")}, - {1100007, newHashFromStr("00000000000abc7b2cd18768ab3dee20857326a818d1946ed6796f42d66dd1e8")}, - {1200007, newHashFromStr("00000000000004f2dc41845771909db57e04191714ed8c963f7e56713a7b6cea")}, - {1300007, newHashFromStr("0000000072eab69d54df75107c052b26b0395b44f77578184293bf1bb1dbd9fa")}, + {0, newHashFromStr("9c89283ba0f3227f6c03b70216b9f665f0118d5e0fa729cedf4fb34d6a34f463")}, }, // Consensus rule change deployments. @@ -501,8 +461,8 @@ var TestNet3Params = Params{ }, DeploymentSegwit: { BitNumber: 1, - StartTime: 1462060800, // May 1, 2016 UTC - ExpireTime: 1493596800, // May 1, 2017 UTC. + StartTime: math.MaxInt64, // Not in the roadmap + ExpireTime: math.MaxInt64, // Not in the roadmap }, }, @@ -581,8 +541,8 @@ var SimNetParams = Params{ }, DeploymentSegwit: { BitNumber: 1, - StartTime: 0, // Always available for vote - ExpireTime: math.MaxInt64, // Never expires. + StartTime: math.MaxInt64, // Not in the roadmap + ExpireTime: math.MaxInt64, // Not in the roadmap }, },