Genesis, version changes and doc for testnet2 (#865)
* Bump up crates versions * Finally add a Cargo.lock to avoid dependency breakages * Build doc update for testnet2 * Fix test framework not really using its mining config * Testnet2 genesis, best so far at 128 difficulty (a nice number) * Minor build doc update
This commit is contained in:
committed by
Yeastplume
parent
1a332a9e69
commit
327293d28e
+11
-10
@@ -83,22 +83,23 @@ pub fn genesis_testnet2() -> core::Block {
|
||||
height: 0,
|
||||
previous: core::hash::Hash([0xff; 32]),
|
||||
timestamp: time::Tm {
|
||||
tm_year: 2017 - 1900,
|
||||
tm_year: 2018 - 1900,
|
||||
tm_mon: 3,
|
||||
tm_mday: 21,
|
||||
tm_hour: 22,
|
||||
tm_mday: 26,
|
||||
tm_hour: 16,
|
||||
..time::empty_tm()
|
||||
},
|
||||
//TODO: Check this is over-estimated at T2 launch
|
||||
total_difficulty: Difficulty::from_num(global::initial_block_difficulty()),
|
||||
nonce: 70081,
|
||||
nonce: 5100,
|
||||
pow: core::Proof::new(vec![
|
||||
0x43ee48, 0x18d5a49, 0x2b76803, 0x3181a29, 0x39d6a8a, 0x39ef8d8, 0x478a0fb,
|
||||
0x69c1f9e, 0x6da4bca, 0x6f8782c, 0x9d842d7, 0xa051397, 0xb56934c, 0xbf1f2c7,
|
||||
0xc992c89, 0xce53a5a, 0xfa87225, 0x1070f99e, 0x107b39af, 0x1160a11b, 0x11b379a8,
|
||||
0x12420e02, 0x12991602, 0x12cc4a71, 0x13d91075, 0x15c950d0, 0x1659b7be, 0x1682c2b4,
|
||||
0x1796c62f, 0x191cf4c9, 0x19d71ac0, 0x1b812e44, 0x1d150efe, 0x1d15bd77, 0x1d172841,
|
||||
0x1d51e967, 0x1ee1de39, 0x1f35c9b3, 0x1f557204, 0x1fbf884f, 0x1fcf80bf, 0x1fd59d40,
|
||||
0xc959ec, 0x16c10da, 0x186c549, 0x3045401, 0x38226e3, 0x42d041b, 0x49bf309,
|
||||
0x5295ae9, 0x6ae4490, 0x763ba88, 0x78e711e, 0x8459fc9, 0x8579418, 0x8fbfc38,
|
||||
0xbf735f0, 0xc30a750, 0xcf1df67, 0xea54fb7, 0xec30a7e, 0xf285691, 0x115b6000,
|
||||
0x11a68288, 0x11a6a1be, 0x1257f383, 0x12ec0836, 0x14357351, 0x14b25747,
|
||||
0x14d9e57c, 0x14f6755c, 0x14f99326, 0x17fe205f, 0x19523912, 0x1973f000,
|
||||
0x19a433b1, 0x19ff0f3a, 0x1bc050d1, 0x1da8c0cb, 0x1de11b30, 0x1eded1f7,
|
||||
0x1f10dc08, 0x1f9a491c, 0x1fa004f8,
|
||||
]),
|
||||
..Default::default()
|
||||
},
|
||||
|
||||
+2
-4
@@ -57,10 +57,8 @@ pub const TESTING_CUT_THROUGH_HORIZON: u32 = 20;
|
||||
/// Testing initial block difficulty
|
||||
pub const TESTING_INITIAL_DIFFICULTY: u64 = 1;
|
||||
|
||||
/// Testing initial block difficulty, testnet 2
|
||||
/// we want to overestimate here as well
|
||||
/// Setting to 1 for development, but should be 1000 at T2 launch
|
||||
pub const TESTNET2_INITIAL_DIFFICULTY: u64 = 1;
|
||||
/// Testnet 2 initial block difficulty, high to see how it goes
|
||||
pub const TESTNET2_INITIAL_DIFFICULTY: u64 = 1000;
|
||||
|
||||
/// The target is the 32-bytes hash block hashes must be lower than.
|
||||
pub const MAX_PROOF_TARGET: [u8; 8] = [0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff];
|
||||
|
||||
Reference in New Issue
Block a user