blocklist

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blocklist

type Blocklist struct {
	// contains filtered or unexported fields
}

func NewBlocklist

func NewBlocklist(store storage.StateStorer) *Blocklist

func (*Blocklist) Add

func (b *Blocklist) Add(overlay boson.Address, duration time.Duration) (err error)

func (*Blocklist) Exists

func (b *Blocklist) Exists(overlay boson.Address) (bool, error)

func (*Blocklist) Peers

func (b *Blocklist) Peers() ([]p2p.BlockPeers, error)

Peers returns all currently blocklisted peers.

func (*Blocklist) Remove added in v1.3.2

func (b *Blocklist) Remove(overlay boson.Address) error

Jump to

Keyboard shortcuts

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