peer

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 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
	ReceivedBundles   int
	InvalidBundles    int
	TotalSessions     int
	CompletedSessions int
	ReceivedBytes     map[message.Type]int64
	SentBytes         map[message.Type]int64
}

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