refactor: add AddPeer and SendPublicPeersToPeer to interfaces

This commit is contained in:
Derrick Hammer 2024-01-08 12:09:21 -05:00
parent 1fe2940fc4
commit 75b0d36b84
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 0 deletions

View File

@ -22,4 +22,6 @@ type P2PService interface {
GetNodeScore(nodeId *encoding.NodeId) (float64, error)
SortNodesByScore(nodes []*encoding.NodeId) ([]*encoding.NodeId, error)
SignMessageSimple(message []byte) ([]byte, error)
AddPeer(peer net.Peer) error
SendPublicPeersToPeer(peer net.Peer, peersToSend []net.Peer) error
}