refactor: add AddPeer and SendPublicPeersToPeer to interfaces
This commit is contained in:
parent
1fe2940fc4
commit
75b0d36b84
|
@ -22,4 +22,6 @@ type P2PService interface {
|
||||||
GetNodeScore(nodeId *encoding.NodeId) (float64, error)
|
GetNodeScore(nodeId *encoding.NodeId) (float64, error)
|
||||||
SortNodesByScore(nodes []*encoding.NodeId) ([]*encoding.NodeId, error)
|
SortNodesByScore(nodes []*encoding.NodeId) ([]*encoding.NodeId, error)
|
||||||
SignMessageSimple(message []byte) ([]byte, error)
|
SignMessageSimple(message []byte) ([]byte, error)
|
||||||
|
AddPeer(peer net.Peer) error
|
||||||
|
SendPublicPeersToPeer(peer net.Peer, peersToSend []net.Peer) error
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue