Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockMessage ¶
type InvMessage ¶
type InvMessage struct {
Inventory []InvVector
}
type Message ¶
type Message struct { Type MessageType Payload interface{} }
func NewBlockMessage ¶
func NewInvMessage ¶
func NewMessage ¶
func NewMessage(msgType MessageType, payload interface{}) *Message
func NewTransactionMessage ¶
func NewTransactionMessage(tx *core.Transaction) *Message
type MessageType ¶
type MessageType uint8
const ( MsgTypeBlock MessageType = iota MsgTypeTx MsgTypeGetBlocks MsgTypeGetData MsgTypeInv MsgTypePing MsgTypePong )
type TransactionMessage ¶
type TransactionMessage struct {
Transaction *core.Transaction
}
Click to show internal directories.
Click to hide internal directories.