Commit graph

11 commits

Author SHA1 Message Date
Felix Lange
4961445397
Update dropper.go 2025-04-14 10:58:59 +02:00
Csaba Kiraly
976e039e37
set doNotDropBefore to 10 minutes
The protection period is meant for peers to have time to start
contribution, but at the moment we have no logic related to
"start contribute", so the number is a bit arbitrary.

The logic in setting this based on the drop interval is from the other
side of things: for not protecting a new node too long. What I wanted
to avoid is protecting a node for too long, while the whole old
peerset can be changed. Actually, for this it would be better to
use peerDropIntervalMin ....

Let's make it independent for now, then we can consider again later.
I would like this number to be bigger than the time a the dropped
peer needs to find a replacement. 10min sounds safe to start with,
then we can checked the effect when it is rolled out, and adjust.

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2025-04-14 10:38:38 +02:00
Csaba Kiraly
2a9372ea5f
eth/dropper: changing error code to DiscUselessPeer
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2025-04-11 14:00:57 +02:00
Csaba Kiraly
ff66b1c42e
eth/dropper: remove unused peerEvent channel
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2025-04-11 12:00:28 +02:00
Csaba Kiraly
4a69bf90ff
eth/dropper: fixing logs
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2025-04-11 11:39:13 +02:00
Csaba Kiraly
7a76bdd75e
eth/dropper: simplify sync status query
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2025-04-11 11:37:14 +02:00
Csaba Kiraly
1647f51eed
eth/dropper: add metrics
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2025-04-11 10:34:09 +02:00
Csaba Kiraly
75c8ee1439
eth/dropper: simplify code
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2025-04-11 10:32:36 +02:00
Csaba Kiraly
5da26a98d0
eth/dropper: simplify cfg
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2025-04-10 17:11:01 +02:00
Csaba Kiraly
e9065acdde
simplify rand usage
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2025-04-10 09:52:52 +02:00
Csaba Kiraly
42d2c9b588
eth: renaming Connection Manager to Dropper
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2025-04-07 16:41:12 +02:00
Renamed from eth/connmanager.go (Browse further)