Skip to content

Commit

Permalink
Rename multifactor to optimisable.
Browse files Browse the repository at this point in the history
  • Loading branch information
FiveMovesAhead committed May 13, 2024
1 parent 934ccb0 commit ccd410b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tig-protocol/src/add_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ async fn update_influence<T: Context>(ctx: &mut T, block: &Block) {
let zero = PreciseNumber::from(0);
let one = PreciseNumber::from(1);
let imbalance_multiplier =
PreciseNumber::from_f64(config.multi_factor_proof_of_work.imbalance_multiplier);
PreciseNumber::from_f64(config.optimisable_proof_of_work.imbalance_multiplier);
let num_challenges = PreciseNumber::from(active_challenge_ids.len());

let mut weights = Vec::<PreciseNumber>::new();
Expand Down
4 changes: 2 additions & 2 deletions tig-structs/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ serializable_struct_with_getters! {
solution_signature: SolutionSignatureConfig,
qualifiers: QualifiersConfig,
difficulty: DifficultyConfig,
multi_factor_proof_of_work: MultiFactorProofOfWorkConfig,
optimisable_proof_of_work: OptimisableProofOfWorkConfig,
rounds: RoundsConfig,
algorithm_submissions: AlgorithmSubmissionsConfig,
rewards: RewardsConfig,
Expand Down Expand Up @@ -79,7 +79,7 @@ serializable_struct_with_getters! {
}
}
serializable_struct_with_getters! {
MultiFactorProofOfWorkConfig {
OptimisableProofOfWorkConfig {
imbalance_multiplier: f64,
}
}
Expand Down

0 comments on commit ccd410b

Please sign in to comment.