Commit 4c345bd
authored
Merge pull request #1680 from keep-network/channel-forwarder-tweaks
Broadcast channel forwarder tweaks
Current settings of the channel forwarder can cause an uncontrolled message
propagation because forwarders live for 1 hour and libp2p pubsub cache holds
seen messages only for 2 minutes. Because of that, a message can continuously
flow in the network even if it is no longer relevant for anyone. If we have
a significant number of keep-core clients in the network and there is a high rate
of messages in general, the network can be congested. As a consequence,
clients will experience resource usage peaks which can be deadly in certain
environments. To prevent such problems we:
- remove broadcast channel messages forwarding for DKG
- reduce broadcast channel messages forwarders TTL for relay entries from
1 hour to 90 seconds2 files changed
+4
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
144 | 142 | | |
145 | 143 | | |
146 | 144 | | |
147 | 145 | | |
148 | 146 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | 147 | | |
156 | 148 | | |
157 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| |||
0 commit comments