Skip to content

Commit

Permalink
Mainnet enablement (#2379)
Browse files Browse the repository at this point in the history
1. Remove the exit guarding running a node in mainnet mode.
2. Set initial difficulty in genesis.
  • Loading branch information
ignopeverell authored Jan 14, 2019
2 parents c5cc4f2 + 6bb611a commit 8a76b37
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion core/src/genesis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 0 additions & 6 deletions src/bin/grin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)) => {
Expand Down

0 comments on commit 8a76b37

Please sign in to comment.