diff --git a/interfaces/p2p.go b/interfaces/p2p.go index b31a7d6..433d8de 100644 --- a/interfaces/p2p.go +++ b/interfaces/p2p.go @@ -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) }