Don't lose my work

This commit is contained in:
Neil Alexander 2022-07-24 10:23:25 +01:00
parent 41b4bf69cf
commit 5616b9fc84
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
6 changed files with 140 additions and 124 deletions

View file

@ -2,8 +2,6 @@ package core
import (
"crypto/ed25519"
"sync/atomic"
"time"
//"encoding/hex"
"encoding/json"
@ -27,6 +25,7 @@ type Self struct {
Coords []uint64
}
/*
type Peer struct {
Key ed25519.PublicKey
Root ed25519.PublicKey
@ -37,6 +36,7 @@ type Peer struct {
TXBytes uint64
Uptime time.Duration
}
*/
type DHTEntry struct {
Key ed25519.PublicKey
@ -62,6 +62,7 @@ func (c *Core) GetSelf() Self {
return self
}
/*
func (c *Core) GetPeers() []Peer {
var peers []Peer
names := make(map[net.Conn]string)
@ -90,6 +91,7 @@ func (c *Core) GetPeers() []Peer {
}
return peers
}
*/
func (c *Core) GetDHT() []DHTEntry {
var dhts []DHTEntry