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 // PeersTip returns current tip block height PeersTip() uint32 // SetPeersTip sets the block height tip of the peer SetPeersTip(startBlockHeight uint32) }
Peer describes a network's node.
func NewElementsPeer ¶
Click to show internal directories.
Click to hide internal directories.