Skip to content

Commit 72169a3

Browse files
committed
removed useless comments
1 parent 619053c commit 72169a3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

catalyst-toolbox/src/rewards/voters.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ mod tests {
170170
)
171171
.unwrap();
172172
if number_of_voters > 0 {
173-
// number of voters always 0 ???
174173
assert_are_close(rewards.values().sum::<Rewards>(), Rewards::ONE)
175174
} else {
176175
assert_eq!(rewards.len(), 0);
@@ -285,8 +284,6 @@ mod tests {
285284
.iter()
286285
.all(|addr| all_rewards.remove(addr).unwrap() > Rewards::ZERO));
287286

288-
// partial test: does not check that rewards for addresses that delegated to both
289-
// active and inactive voters only come from active ones -> how to implement this?
290287
for (_, voting_key) in inactive_voters_keys {
291288
for contrib in snapshot.contributions_for_voting_key(voting_key.clone()) {
292289
assert!(all_rewards.get(&contrib.reward_address).is_none());

0 commit comments

Comments
 (0)