Commit b1416c8
committed
simplify calculate_committee_fraction (#4213)
## Issue Addressed
[#4211](#4211)
## Proposed Changes
This PR conforms the helper function `calculate_committee_fraction` to the [v1.3.0 spec](https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/phase0/fork-choice.md#get_weight)
## Additional Info
the old definition of `calculate_committee_fraction` is almost identical, but the new definition is simpler.1 parent edbb47d commit b1416c8
File tree
2 files changed
+4
-8
lines changed- consensus/proto_array/src
- fork_choice_test_definition
2 files changed
+4
-8
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
987 | 987 | | |
988 | 988 | | |
989 | 989 | | |
990 | | - | |
| 990 | + | |
991 | 991 | | |
992 | 992 | | |
993 | 993 | | |
994 | | - | |
| 994 | + | |
995 | 995 | | |
996 | 996 | | |
997 | 997 | | |
| |||
1000 | 1000 | | |
1001 | 1001 | | |
1002 | 1002 | | |
1003 | | - | |
| 1003 | + | |
1004 | 1004 | | |
1005 | 1005 | | |
1006 | 1006 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1055 | 1055 | | |
1056 | 1056 | | |
1057 | 1057 | | |
1058 | | - | |
| 1058 | + | |
1059 | 1059 | | |
1060 | | - | |
1061 | | - | |
1062 | | - | |
1063 | 1060 | | |
1064 | | - | |
1065 | 1061 | | |
1066 | 1062 | | |
1067 | 1063 | | |
| |||
0 commit comments