File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
chain-impl-mockchain/src/vote Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,7 @@ impl TallyResult {
176
176
const GAMMA : & str = "QUADRATIC_VOTING_GAMMA" ;
177
177
const PRECISION : & str = "QUADRATIC_VOTING_PRECISION" ;
178
178
179
+ // Apply quadratic scaling if gamma value specified in env var. Else gamma is 1 and has no effect.
179
180
let gamma = env:: var ( GAMMA ) . unwrap_or ( 1 . to_string ( ) ) ;
180
181
let precision =
181
182
i64:: from_str ( & env:: var ( PRECISION ) . unwrap_or ( 1 . to_string ( ) ) ) . unwrap_or ( 1 ) ;
Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ impl EncryptedTally {
168
168
const GAMMA : & str = "QUADRATIC_VOTING_GAMMA" ;
169
169
const PRECISION : & str = "QUADRATIC_VOTING_PRECISION" ;
170
170
171
+ // Apply quadratic scaling if gamma value specified in env var. Else gamma is 1 and has no effect.
171
172
let gamma = env:: var ( GAMMA ) . unwrap_or ( 1 . to_string ( ) ) ;
172
173
let precision = i64:: from_str ( & env:: var ( PRECISION ) . unwrap_or ( 1 . to_string ( ) ) ) . unwrap_or ( 1 ) ;
173
174
You can’t perform that action at this time.
0 commit comments