Commit f975a0c
bitfield_distribution: fix subsystem clogged at begining of a session (#9094)
`handle_peer_view_change` gets called on NewGossipTopology with the
existing view of the peer to cover for the case when the topology might
arrive late, but in that case in the view will contain old blocks from
previous session, so since the X/Y neighbour change because of the
topology change you end up sending a lot of messages for blocks before
the session changed.
Fix it by checking the send message only for relay chains that are in
the same session as the current topology.
---------
Signed-off-by: Alexandru Gheorghe <[email protected]>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>1 parent ff3f3a0 commit f975a0c
File tree
3 files changed
+24
-1
lines changed- polkadot/node/network
- bitfield-distribution/src
- protocol/src
- prdoc
3 files changed
+24
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
789 | 789 | | |
790 | 790 | | |
791 | 791 | | |
| 792 | + | |
792 | 793 | | |
793 | 794 | | |
794 | 795 | | |
| 796 | + | |
795 | 797 | | |
796 | 798 | | |
797 | 799 | | |
| |||
809 | 811 | | |
810 | 812 | | |
811 | 813 | | |
812 | | - | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
813 | 819 | | |
814 | 820 | | |
815 | 821 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
499 | 504 | | |
500 | 505 | | |
501 | 506 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments