fix: need to export methods for now
This commit is contained in:
parent
b8cb37f99e
commit
cb23f21ecc
|
@ -14,9 +14,9 @@ type P2PService interface {
|
|||
Stop() error
|
||||
Init() error
|
||||
ConnectToNode(connectionUris []*url.URL, retried bool) error
|
||||
onNewPeer(peer *net.Peer, verifyId bool) error
|
||||
onNewPeerListen(peer *net.Peer, verifyId bool)
|
||||
readNodeScore(nodeId *encoding.NodeId) (NodeVotes, error)
|
||||
getNodeScore(nodeId *encoding.NodeId) (float64, error)
|
||||
OnNewPeer(peer *net.Peer, verifyId bool) error
|
||||
OnNewPeerListen(peer *net.Peer, verifyId bool)
|
||||
ReadNodeScore(nodeId *encoding.NodeId) (NodeVotes, error)
|
||||
GetNodeScore(nodeId *encoding.NodeId) (float64, error)
|
||||
SortNodesByScore(nodes []*encoding.NodeId) ([]*encoding.NodeId, error)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue