Commit ae708c7
committed
feat(network): Add support for Headers2 in peer selection logic
This commit enhances the PeerNetworkManager to include support for the Headers2 protocol. It introduces logic to prefer peers that advertise Headers2 support when selecting a sync peer. The changes ensure that the current sync peer is updated accordingly, improving compatibility and efficiency in header synchronization.
- Added logic to check for Headers2 support in peer selection.
- Updated existing sync peer selection to prioritize peers with Headers2 capabilities.
- Ensured proper logging when a new sync peer is selected for Headers2.
This update aligns with ongoing efforts to improve protocol compatibility and performance in the network manager.1 parent fd42619 commit ae708c7
1 file changed
+33
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
| 783 | + | |
783 | 784 | | |
784 | 785 | | |
785 | 786 | | |
| |||
807 | 808 | | |
808 | 809 | | |
809 | 810 | | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
810 | 842 | | |
811 | 843 | | |
812 | 844 | | |
| |||
1061 | 1093 | | |
1062 | 1094 | | |
1063 | 1095 | | |
| 1096 | + | |
1064 | 1097 | | |
1065 | 1098 | | |
1066 | 1099 | | |
| |||
0 commit comments