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
Click to show internal directories.
Click to hide internal directories.