Documentation ¶
Overview ¶
DEPRECATED: This package is deprecated and will be removed in a future release.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterOrUpdateWithRetries ¶
RegisterOrUpdateWithRetries registers bandwidth-marketplace Node in blockchain if node is not registered or updates if is with retries.
If an error occurs during execution, the program terminates with code 2 and the last error will be written in os.Stderr.
RegisterOrUpdateWithRetries should be used only once while application is starting.
Types ¶
type Node ¶
type Node interface { // RegistrationFuncName returns name of magma sc function used for registration Node. RegistrationFuncName() string // UpdateNodeFuncName returns name of magma sc function used for updating Node. UpdateNodeFuncName() string // IsNodeRegisteredRP returns name of magma sc relative path for checking registration of Node. IsNodeRegisteredRP() string // ExternalID returns external ID of Node ExternalID() string // Encode encodes Node in json bytes. Encode() []byte }
Node represent bandwidth-marketplace node that can be registered.
Click to show internal directories.
Click to hide internal directories.