From 224a26faedd5736fd73a3688d270719fd0803fc3 Mon Sep 17 00:00:00 2001 From: Ignotus Peverell Date: Mon, 14 Jan 2019 20:07:10 +0000 Subject: [PATCH] Mainnet enablement 1. Remove the exit guarding running a node in mainnet mode. 2. Set initial difficulty in genesis. --- core/src/genesis.rs | 2 +- src/bin/grin.rs | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/core/src/genesis.rs b/core/src/genesis.rs index c8a87b14..442cfea5 100644 --- a/core/src/genesis.rs +++ b/core/src/genesis.rs @@ -179,7 +179,7 @@ pub fn genesis_main() -> core::Block { output_mmr_size: 1, kernel_mmr_size: 1, pow: ProofOfWork { - total_difficulty: Difficulty::from_num(10_u64.pow(8)), + total_difficulty: Difficulty::from_num(2_u64.pow(34)), secondary_scaling: 1856, nonce: 1, // REPLACE proof: Proof { diff --git a/src/bin/grin.rs b/src/bin/grin.rs index dc525af1..4bb5c9b3 100644 --- a/src/bin/grin.rs +++ b/src/bin/grin.rs @@ -87,12 +87,6 @@ fn real_main() -> i32 { global::ChainTypes::Mainnet }; - // TODO remove for mainnet - if chain_type == global::ChainTypes::Mainnet { - println!("Mainnet not ready yet! In the meantime run 'grin --floonet ...'"); - exit(1); - } - // Deal with configuration file creation match args.subcommand() { ("server", Some(server_args)) => {