helpers

package
v0.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendHeartbeat

func SendHeartbeat(p *peer.Peer, solidMsIndex milestone.Index, pruningMsIndex milestone.Index, latestMsIndex milestone.Index, connectedNeighbors uint8, syncedNeighbors uint8)

SendHeartbeat sends a heartbeat message to the given peer.

func SendLatestMilestoneRequest

func SendLatestMilestoneRequest(p *peer.Peer)

SendLatestMilestoneRequest sends a milestone request which requests the latest known milestone from the given peer.

func SendMilestoneRequest

func SendMilestoneRequest(p *peer.Peer, index milestone.Index)

SendMilestoneRequest sends a milestone request to the given peer.

func SendTransaction

func SendTransaction(p *peer.Peer, txData []byte)

SendTransaction sends a transaction message to the given peer.

func SendTransactionRequest

func SendTransactionRequest(p *peer.Peer, requestedHash hornet.Hash)

SendTransactionRequest sends a transaction request message to the given peer.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL