pre-testnet4 genesis values (#1744)

This commit is contained in:
Yeastplume 2018-10-15 11:14:49 +01:00 committed by GitHub
parent 3b0006934e
commit 13facfac4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -106,11 +106,12 @@ pub fn genesis_testnet3() -> core::Block {
}
/// 4th testnet genesis block (cuckatoo29 AR, 30+ AF). Temporary values for now (Pow won't verify)
/// NB: Currently set to intenal pre-testnet values
pub fn genesis_testnet4() -> core::Block {
core::Block::with_header(core::BlockHeader {
height: 0,
previous: core::hash::Hash([0xff; 32]),
timestamp: Utc.ymd(2018, 8, 30).and_hms(18, 0, 0),
timestamp: Utc.ymd(2018, 10, 15).and_hms(12, 0, 0),
pow: ProofOfWork {
total_difficulty: Difficulty::from_num(global::initial_block_difficulty()),
scaling_difficulty: 1,

View file

@ -57,7 +57,7 @@ pub struct WalletConfig {
impl Default for WalletConfig {
fn default() -> WalletConfig {
WalletConfig {
chain_type: Some(ChainTypes::Testnet3),
chain_type: Some(ChainTypes::Testnet4),
api_listen_interface: "127.0.0.1".to_string(),
api_listen_port: 13415,
api_secret_path: Some(".api_secret".to_string()),