Skip to content

Commit

Permalink
Merge pull request #2107 from massalabs/correct_critical_config_errors
Browse files Browse the repository at this point in the history
repair critical config errors
  • Loading branch information
damip authored Jan 9, 2022
2 parents f80dea4 + d560ba3 commit c83c982
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions massa-consensus/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use massa_signature::PrivateKey;
use massa_time::MassaTime;
use num::rational::Ratio;
use serde::{Deserialize, Serialize};
#[cfg(not(test))]
use std::str::FromStr;
use std::{default::Default, path::PathBuf, usize};

Expand Down Expand Up @@ -45,7 +44,7 @@ lazy_static::lazy_static! {
/// number of cycle misses (strictly) above which stakers are deactivated
pub static ref POS_MISS_RATE_DEACTIVATION_THRESHOLD: Ratio<u64> = Ratio::new(7, 10);

pub static ref ROLL_PRICE: Amount = Amount::from_raw(100);
pub static ref ROLL_PRICE: Amount = Amount::from_str("100.0").unwrap();
}

#[cfg(test)]
Expand All @@ -62,14 +61,14 @@ lazy_static::lazy_static! {
/// Private_key to sign genesis blocks.
pub static ref GENESIS_KEY: PrivateKey = generate_random_private_key();

pub static ref BLOCK_REWARD: Amount = Amount::from_raw(1);
pub static ref BLOCK_REWARD: Amount = Amount::from_str("1.0").unwrap();

pub static ref INITIAL_DRAW_SEED: String = "massa_genesis_seed".to_string();

/// number of cycle misses (strictly) above which stakers are deactivated
pub static ref POS_MISS_RATE_DEACTIVATION_THRESHOLD: Ratio<u64> = Ratio::new(1, 1);

pub static ref ROLL_PRICE: Amount = Amount::default();
pub static ref ROLL_PRICE: Amount = Amount::from_str("100.0").unwrap();
}

/// Number of threads
Expand Down

0 comments on commit c83c982

Please sign in to comment.