mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
p2p: raise the ban limits to harsher
This commit is contained in:
parent
e01d61bacb
commit
1b25ffaca5
1 changed files with 4 additions and 4 deletions
|
|
@ -19,10 +19,10 @@ const (
|
||||||
refreshPeersInterval = 30 * time.Second
|
refreshPeersInterval = 30 * time.Second
|
||||||
staticPeerCheckInterval = 15 * time.Second
|
staticPeerCheckInterval = 15 * time.Second
|
||||||
|
|
||||||
banStartingTimeout = 30 * time.Second // Amount of time a first offender is banned
|
banStartingTimeout = time.Minute // Amount of time a first offender is banned
|
||||||
banMaximumTimeout = 30 * time.Minute // Maximum time for banning somebody
|
banMaximumTimeout = time.Hour // Maximum time for banning somebody
|
||||||
banAggrevationMultiplier = 2 // Multiplier for repeat offenders
|
banAggrevationMultiplier = 4 // Multiplier for repeat offenders
|
||||||
banAbsolutionMultiplier = 10 // Multiplier for absolving a node
|
banAbsolutionMultiplier = 24 // Multiplier for absolving a node
|
||||||
|
|
||||||
// Maximum number of concurrently handshaking inbound connections.
|
// Maximum number of concurrently handshaking inbound connections.
|
||||||
maxAcceptConns = 50
|
maxAcceptConns = 50
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue