Documentation ¶
Overview ¶
package for maintaining connection with the main node on the node WaspConn plugin is handling yhe connection
Index ¶
- Constants
- Variables
- func Init() *node.Plugin
- func IsConnected() bool
- func PostTransactionToNode(tx *valuetransaction.Transaction, fromSc *address.Address, fromLeader uint16) error
- func RequestConfirmedTransactionFromNode(txid *valuetransaction.ID) error
- func RequestInclusionLevelFromNode(txid *valuetransaction.ID, addr *address.Address) error
- func RequestOutputsFromNode(addr *address.Address) error
- func SendDataToNode(data []byte) error
- func SendWaspIdToNode() error
- func Subscribe(addr address.Address, color balance.Color)
- func Unsubscribe(addr address.Address)
Constants ¶
View Source
const PluginName = "NodeConn"
PluginName is the name of the NodeConn plugin.
Variables ¶
View Source
var EventMessageReceived = events.NewEvent(param1Caller)
Functions ¶
func IsConnected ¶
func IsConnected() bool
func PostTransactionToNode ¶
func PostTransactionToNode(tx *valuetransaction.Transaction, fromSc *address.Address, fromLeader uint16) error
func RequestConfirmedTransactionFromNode ¶
func RequestConfirmedTransactionFromNode(txid *valuetransaction.ID) error
func RequestInclusionLevelFromNode ¶
func RequestInclusionLevelFromNode(txid *valuetransaction.ID, addr *address.Address) error
func RequestOutputsFromNode ¶
func SendDataToNode ¶
func SendWaspIdToNode ¶
func SendWaspIdToNode() error
func Unsubscribe ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.