aboutsummaryrefslogtreecommitdiffstats
path: root/simulation/tcp-network.go
diff options
context:
space:
mode:
Diffstat (limited to 'simulation/tcp-network.go')
-rw-r--r--simulation/tcp-network.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/simulation/tcp-network.go b/simulation/tcp-network.go
index 6e2616b..f56cc53 100644
--- a/simulation/tcp-network.go
+++ b/simulation/tcp-network.go
@@ -349,3 +349,12 @@ func (n *TCPNetwork) GetServerInfo() InfoMessage {
}
return infoMsg
}
+
+// Endpoints returns all validatorIDs.
+func (n *TCPNetwork) Endpoints() types.ValidatorIDs {
+ vIDs := make(types.ValidatorIDs, 0, len(n.endpoints))
+ for vID := range n.endpoints {
+ vIDs = append(vIDs, vID)
+ }
+ return vIDs
+}