Browse Source

chore: fix typos in comments and logs

y 3 năm trước cách đây
mục cha
commit
ed53f896af
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      src/consensus/state.rs
  2. 1 1
      src/validator/consensus/pid.rs

+ 1 - 1
src/consensus/state.rs

@@ -375,7 +375,7 @@ impl ConsensusState {
         self.err_history.push(err);
         ret
     }
-    /// the probability inverse of winnig lottery having all the stake
+    /// the probability inverse of winning lottery having all the stake
     /// returns f
     fn win_inv_prob_with_full_stake(&mut self) -> Float10 {
         let mut f = self.discrete_pid();

+ 1 - 1
src/validator/consensus/pid.rs

@@ -79,7 +79,7 @@ fn calculate_f(previous_slot: &Slot, previous_producers: u64) -> (Float10, Float
         K1.clone() * error.clone() +
         K2.clone() * previous_slot_error +
         K3.clone() * previous_slot_previous_slot_error;
-    debug!(target: "validator::consensus::pid::calculate_f", "Ounbounded f: {f}");
+    debug!(target: "validator::consensus::pid::calculate_f", "Unbounded f: {f}");
 
     // Boundaries control
     if f <= *FLOAT10_ZERO {