extension

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 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