mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
Mainnet enablement (#2379)
1. Remove the exit guarding running a node in mainnet mode. 2. Set initial difficulty in genesis.
This commit is contained in:
commit
8a76b374ff
2 changed files with 1 additions and 7 deletions
|
@ -179,7 +179,7 @@ pub fn genesis_main() -> core::Block {
|
||||||
output_mmr_size: 1,
|
output_mmr_size: 1,
|
||||||
kernel_mmr_size: 1,
|
kernel_mmr_size: 1,
|
||||||
pow: ProofOfWork {
|
pow: ProofOfWork {
|
||||||
total_difficulty: Difficulty::from_num(10_u64.pow(8)),
|
total_difficulty: Difficulty::from_num(2_u64.pow(34)),
|
||||||
secondary_scaling: 1856,
|
secondary_scaling: 1856,
|
||||||
nonce: 1, // REPLACE
|
nonce: 1, // REPLACE
|
||||||
proof: Proof {
|
proof: Proof {
|
||||||
|
|
|
@ -87,12 +87,6 @@ fn real_main() -> i32 {
|
||||||
global::ChainTypes::Mainnet
|
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
|
// Deal with configuration file creation
|
||||||
match args.subcommand() {
|
match args.subcommand() {
|
||||||
("server", Some(server_args)) => {
|
("server", Some(server_args)) => {
|
||||||
|
|
Loading…
Reference in a new issue