diff --git a/bindings/follow.go b/bindings/follow.go index 8e5826dc9ddc85956e313530f0b3baf7df4bf7eb..4a86934dbd3a8babff88094ccb770f56e74c03f7 100644 --- a/bindings/follow.go +++ b/bindings/follow.go @@ -90,6 +90,16 @@ func (c *Cmix) NetworkFollowerStatus() int { return int(c.api.NetworkFollowerStatus()) } +// GetNodeRegistrationStatus returns the current state of nodes registration. +// +// Returns: +// - The number of nodes with which the user is registered. +// - The number of nodes present in the NDF. +// - An error. This will most likely occur if the network is unhealthy. +func (c *Cmix) GetNodeRegistrationStatus() (int, int, error) { + return c.api.GetNodeRegistrationStatus() +} + // HasRunningProcessies checks if any background threads are running and returns // true if one or more are. // diff --git a/bindings/group.go b/bindings/group.go new file mode 100644 index 0000000000000000000000000000000000000000..95f91744f2800674303ebd12a6bf9a7284ca3c0a --- /dev/null +++ b/bindings/group.go @@ -0,0 +1 @@ +package bindings diff --git a/xxdk/cmix.go b/xxdk/cmix.go index 6dfe2e5409880840d5f8ee170a1729fabb5f9dfb..dfde9ce0d01ff4241bacc4bf6fcf9b680859cb62 100644 --- a/xxdk/cmix.go +++ b/xxdk/cmix.go @@ -445,9 +445,9 @@ func (c *Cmix) GetEventReporter() event.Reporter { } // GetNodeRegistrationStatus gets the current state of nodes registration. It -// returns the total number of nodes in the NDF and the number of those that are -// currently registered with. An error is returned if the network is not -// healthy. +// returns the number of nodes that the user is currently registered with and +// the total number of nodes in the NDF and. An error is returned if the network +// is not healthy. func (c *Cmix) GetNodeRegistrationStatus() (int, int, error) { // Return an error if the network is not healthy if !c.GetCmix().IsHealthy() {