state.rs 600 B

1234567891011121314151617
  1. use lox_cli::networking::*;
  2. use lox_library::IssuerPubKey;
  3. pub struct State {
  4. pub la_pubkeys: Vec<IssuerPubKey>,
  5. pub net: HyperNet,
  6. pub net_test: HyperNet,
  7. pub net_tp: HyperNet,
  8. // Probability that if Alice invites Bob, Alice and Bob are in the same
  9. // country. This is in *addition* to the regular probability that Bob is in
  10. // that country by random selection.
  11. pub prob_friend_in_same_country: f64,
  12. pub prob_user_invites_friend: f64,
  13. pub prob_user_is_censor: f64,
  14. pub prob_user_submits_reports: f64,
  15. pub probs_user_in_country: Vec<(String, f64)>,
  16. }