Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Peer ¶
type Peer interface { // ID returns peer ID. Must be unique in the network. ID() PeerID // Connection returns peer connection, using to send and receive Elements messages. Connection() io.ReadWriteCloser // Addr returns the Network Address of the peer Addr() *protocol.Addr // StartBlockHeight returns the block height of the peer StartBlockHeight() uint32 // SetStartBlockHeight sets the block height of the peer SetStartBlockHeight(startBlockHeight uint32) }
Peer describes a network's node.
func NewElementsPeer ¶
Click to show internal directories.
Click to hide internal directories.