Commit fdea8f2
committed
Shift subnet backbone structure (attnets revamp) (#4304)
This PR address the following spec change: ethereum/consensus-specs#3312
Instead of subscribing to a long-lived subnet for every attached validator to a beacon node, all beacon nodes will subscribe to `SUBNETS_PER_NODE` long-lived subnets. This is currently set to 2 for mainnet.
This PR does not include any scoring or advanced discovery mechanisms. A future PR will improve discovery and we can implement scoring after the next hard fork when we expect all client teams and all implementations to respect this spec change.
This will be a significant change in the subnet network structure for consensus clients and we will likely have to monitor and tweak our peer management logic.1 parent d150ccb commit fdea8f2
File tree
11 files changed
+276
-427
lines changed- beacon_node/network
- src
- subnet_service
- tests
- common/eth2_network_config/built_in_network_configs
- gnosis
- mainnet
- prater
- sepolia
- consensus/types/src
11 files changed
+276
-427
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 49 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
321 | | - | |
| 320 | + | |
322 | 321 | | |
323 | 322 | | |
324 | 323 | | |
| |||
Lines changed: 61 additions & 327 deletions
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | | - | |
173 | 171 | | |
174 | 172 | | |
175 | | - | |
| 173 | + | |
176 | 174 | | |
177 | 175 | | |
178 | 176 | | |
| |||
455 | 453 | | |
456 | 454 | | |
457 | 455 | | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
| 456 | + | |
469 | 457 | | |
470 | 458 | | |
471 | 459 | | |
| |||
625 | 613 | | |
626 | 614 | | |
627 | 615 | | |
628 | | - | |
629 | | - | |
| 616 | + | |
630 | 617 | | |
631 | 618 | | |
632 | | - | |
633 | 619 | | |
634 | | - | |
| 620 | + | |
635 | 621 | | |
636 | 622 | | |
637 | 623 | | |
| |||
852 | 838 | | |
853 | 839 | | |
854 | 840 | | |
855 | | - | |
856 | | - | |
| 841 | + | |
857 | 842 | | |
858 | 843 | | |
859 | | - | |
860 | 844 | | |
861 | | - | |
| 845 | + | |
862 | 846 | | |
863 | 847 | | |
864 | 848 | | |
| |||
946 | 930 | | |
947 | 931 | | |
948 | 932 | | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
949 | 936 | | |
950 | 937 | | |
951 | 938 | | |
| |||
1002 | 989 | | |
1003 | 990 | | |
1004 | 991 | | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
1005 | 996 | | |
1006 | 997 | | |
1007 | 998 | | |
| |||
1084 | 1075 | | |
1085 | 1076 | | |
1086 | 1077 | | |
| 1078 | + | |
1087 | 1079 | | |
1088 | 1080 | | |
1089 | 1081 | | |
| |||
1130 | 1122 | | |
1131 | 1123 | | |
1132 | 1124 | | |
| 1125 | + | |
1133 | 1126 | | |
1134 | 1127 | | |
1135 | 1128 | | |
| |||
1162 | 1155 | | |
1163 | 1156 | | |
1164 | 1157 | | |
| 1158 | + | |
1165 | 1159 | | |
1166 | 1160 | | |
1167 | 1161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | 89 | | |
94 | 90 | | |
95 | 91 | | |
| |||
0 commit comments