extension

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PeerExtension

type PeerExtension interface {
	AskBlocksIDs(id []proto.BlockID)
	AskBlock(id proto.BlockID)
	SendMicroBlock(micro *proto.MicroBlock) error
	SendTransaction(t proto.Transaction) error
}

func NewPeerExtension

func NewPeerExtension(p peer.Peer, scheme proto.Scheme) PeerExtension

type PeerWrapperImpl

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

func (PeerWrapperImpl) AskBlock

func (a PeerWrapperImpl) AskBlock(id proto.BlockID)

func (PeerWrapperImpl) AskBlocksIDs

func (a PeerWrapperImpl) AskBlocksIDs(ids []proto.BlockID)

func (PeerWrapperImpl) SendMicroBlock

func (a PeerWrapperImpl) SendMicroBlock(micro *proto.MicroBlock) error

func (PeerWrapperImpl) SendTransaction

func (a PeerWrapperImpl) SendTransaction(t proto.Transaction) error

Jump to

Keyboard shortcuts

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