Просмотр исходного кода

[consensus] revert to 0 stake, 0 initial distribution

mohab metwally 3 лет назад
Родитель
Сommit
4c164a5f38
2 измененных файлов с 2 добавлено и 3 удалено
  1. 1 1
      src/consensus/constants.rs
  2. 1 2
      src/consensus/state.rs

+ 1 - 1
src/consensus/constants.rs

@@ -33,7 +33,7 @@ lazy_static! {
     pub static ref MAINNET_BOOTSTRAP_TIMESTAMP: Timestamp = Timestamp(1650887115);
 
     /// Total sum of initial staking coins for the mainnet chain
-    pub static ref MAINNET_INITIAL_DISTRIBUTION: u64 = 1000;
+    pub static ref MAINNET_INITIAL_DISTRIBUTION: u64 = 0;
 
     /// Genesis hash for the testnet chain
     pub static ref TESTNET_GENESIS_HASH_BYTES: blake3::Hash = blake3::hash(b"darkfi_testnet");

+ 1 - 2
src/consensus/state.rs

@@ -324,9 +324,8 @@ impl ConsensusState {
                 // This stake should be based on how many nodes we want to run, and they all
                 // must sum to initial distribution total coins.
                 //let stake = self.initial_distribution;
-                let stake = 200;
                 let c = LeadCoin::new(
-                    stake,
+                    0,
                     slot,
                     epoch_secrets.secret_keys[0].inner(),
                     epoch_secrets.merkle_roots[0],