mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-06 19:12:19 +00:00
436493350e
1. changes sentinel to use an http-like interface 2. moves hexutil, crypto/blake2b, metrics packages to erigon-lib
14 lines
184 B
Go
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
|
|
}
|