erigon-pulse/cl/sentinel/peers/peers.go
a 436493350e
Sentinel refactor (#8296)
1. changes sentinel to use an http-like interface

2. moves hexutil, crypto/blake2b, metrics packages to erigon-lib
2023-10-22 01:17:18 +02:00

14 lines
184 B
Go

package peers
const (
maxBadPeers = 50000
maxPeerRecordSize = 1000
DefaultMaxPeers = 64
MaxBadResponses = 50
)
type PeeredObject[T any] struct {
Peer string
Data T
}