Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProtocolHandler ¶
type ProtocolHandler struct {
// contains filtered or unexported fields
}
func NewProtocolHandler ¶
func NewProtocolHandler() (*ProtocolHandler, error)
func (*ProtocolHandler) SetProtocolManager ¶
func (ph *ProtocolHandler) SetProtocolManager(manager *ProtocolManager)
type ProtocolManager ¶
type ProtocolManager struct {
// contains filtered or unexported fields
}
func NewProtocolManager ¶
func NewProtocolManager(config config.Config, blockchain *chain.Blockchain) (*ProtocolManager, error)
func (*ProtocolManager) BroadcastBlock ¶
func (pm *ProtocolManager) BroadcastBlock(block *model.Block) error
func (*ProtocolManager) BroadcastTransaction ¶
func (pm *ProtocolManager) BroadcastTransaction(transaction *model.Transaction) error
func (*ProtocolManager) HandlePeerMessage ¶
func (pm *ProtocolManager) HandlePeerMessage(peer *p2p.Peer) error
func (*ProtocolManager) Start ¶
func (pm *ProtocolManager) Start() error
Click to show internal directories.
Click to hide internal directories.