Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MachineEndian = binary.LittleEndian
MachineEndian is the endianess of the machine
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher interface { // Start starts a dispatcher Start() error // Stop stops a dispatcher Stop() error // HandleBroadcast handles the incoming broadcast message. The transportation layer semantics is at least once. // That said, the handler is likely to receive duplicate messages. HandleBroadcast(proto.Message, chan bool) // HandleTell handles the incoming tell message. The transportation layer semantics is exact once. The sender is // given for the sake of replying the message HandleTell(net.Addr, proto.Message, chan bool) }
Dispatcher is used by peers, handles incoming block and header notifications and relays announcements of new blocks.
Click to show internal directories.
Click to hide internal directories.