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 {
176176 const GAMMA : & str = "QUADRATIC_VOTING_GAMMA" ;
177177 const PRECISION : & str = "QUADRATIC_VOTING_PRECISION" ;
178178
179+ // Apply quadratic scaling if gamma value specified in env var. Else gamma is 1 and has no effect.
179180 let gamma = env:: var ( GAMMA ) . unwrap_or ( 1 . to_string ( ) ) ;
180181 let precision =
181182 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 {
168168 const GAMMA : & str = "QUADRATIC_VOTING_GAMMA" ;
169169 const PRECISION : & str = "QUADRATIC_VOTING_PRECISION" ;
170170
171+ // Apply quadratic scaling if gamma value specified in env var. Else gamma is 1 and has no effect.
171172 let gamma = env:: var ( GAMMA ) . unwrap_or ( 1 . to_string ( ) ) ;
172173 let precision = i64:: from_str ( & env:: var ( PRECISION ) . unwrap_or ( 1 . to_string ( ) ) ) . unwrap_or ( 1 ) ;
173174
You can’t perform that action at this time.
0 commit comments