peer

package
v1.6.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID = lp2ppeer.ID

type Peer

type Peer struct {
	Status            status.Status
	Moniker           string
	Agent             string
	Address           string
	Direction         string
	Protocols         []string
	PeerID            ID
	ConsensusKeys     []*bls.PublicKey
	Services          service.Services
	LastSent          time.Time
	LastReceived      time.Time
	LastBlockHash     hash.Hash
	Height            uint32
	TotalSessions     int
	CompletedSessions int
	Metric            metric.Metric
}

func NewPeer

func NewPeer(peerID ID) *Peer

func (*Peer) DownloadScore

func (p *Peer) DownloadScore() int

func (*Peer) IsFullNode added in v1.4.0

func (p *Peer) IsFullNode() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL