aboutsummaryrefslogtreecommitdiff
path: root/cmd/dendrite-demo-yggdrasil/yggconn/node.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-07-01 13:35:58 +0100
committerNeil Alexander <neilalexander@users.noreply.github.com>2020-07-01 13:35:58 +0100
commit8e7947926cd00a05f90a9d0bfdc29dcd2dc9ab7a (patch)
tree8bd7578f84822cf3313a6a199735909082034a92 /cmd/dendrite-demo-yggdrasil/yggconn/node.go
parent42dd96242574866378bb95d92bc0c7fdf3dbabf6 (diff)
Fix Yggdrasil gobind build, set display name at registration
Diffstat (limited to 'cmd/dendrite-demo-yggdrasil/yggconn/node.go')
-rw-r--r--cmd/dendrite-demo-yggdrasil/yggconn/node.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/dendrite-demo-yggdrasil/yggconn/node.go b/cmd/dendrite-demo-yggdrasil/yggconn/node.go
index c335f2ea..73e9cd5b 100644
--- a/cmd/dendrite-demo-yggdrasil/yggconn/node.go
+++ b/cmd/dendrite-demo-yggdrasil/yggconn/node.go
@@ -174,3 +174,7 @@ func (n *Node) SigningPrivateKey() ed25519.PrivateKey {
privBytes, _ := hex.DecodeString(n.config.SigningPrivateKey)
return ed25519.PrivateKey(privBytes)
}
+
+func (n *Node) PeerCount() int {
+ return len(n.core.GetSwitchPeers())
+}