Skip to content

Cleanup beacons.go #1356

Closed
Closed
@StephenButtolph

Description

@StephenButtolph

The beacons.go file should be modified to use an array of structs so that the relationship between the nodeIDs and the nodeIPs is clear and obvious.

This should change the signature of SampleBeacons from:

func SampleBeacons(networkID uint32, count int) ([]string, []string) {

to

func SampleBeacons(networkID uint32, count int) []Beacon {

(or something similar)

The inspiration for this change was #1354 which the relationship between indices was determined to be non-obvious.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions