View definition

func (*peerSet).Register(p *peer) error

Defined in github.com/ethereum/go-ethereum/eth/downloader/peer.go

Description

Register injects a new peer into the working set, or returns an error if the peer is already known.

The method also sets the starting throughput values of the new peer to the average of all existing peers, to give it a realistic chance of being used for data retrievals.

Register is referenced in 0 repositories