2021-08-30 14:57:28 +00:00
|
|
|
package protocol
|
|
|
|
|
2022-11-24 15:00:44 +00:00
|
|
|
import "github.com/status-im/status-go/eth-node/types"
|
|
|
|
|
2021-09-10 17:06:06 +00:00
|
|
|
func (m *Messenger) AddStorePeer(address string) (string, error) {
|
2021-08-30 14:57:28 +00:00
|
|
|
return m.transport.AddStorePeer(address)
|
|
|
|
}
|
|
|
|
|
2021-09-10 17:06:06 +00:00
|
|
|
func (m *Messenger) AddRelayPeer(address string) (string, error) {
|
2021-08-30 14:57:28 +00:00
|
|
|
return m.transport.AddStorePeer(address)
|
|
|
|
}
|
|
|
|
|
2021-09-10 17:06:06 +00:00
|
|
|
func (m *Messenger) DialPeer(address string) error {
|
|
|
|
return m.transport.DialPeer(address)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Messenger) DialPeerByID(peerID string) error {
|
|
|
|
return m.transport.DialPeerByID(peerID)
|
|
|
|
}
|
|
|
|
|
2021-08-30 14:57:28 +00:00
|
|
|
func (m *Messenger) DropPeer(peerID string) error {
|
|
|
|
return m.transport.DropPeer(peerID)
|
|
|
|
}
|
|
|
|
|
2022-11-24 15:00:44 +00:00
|
|
|
func (m *Messenger) Peers() map[string]types.WakuV2Peer {
|
2021-08-30 14:57:28 +00:00
|
|
|
return m.transport.Peers()
|
|
|
|
}
|
2022-11-24 21:27:46 +00:00
|
|
|
|
|
|
|
func (m *Messenger) ListenAddresses() ([]string, error) {
|
|
|
|
return m.transport.ListenAddresses()
|
|
|
|
}
|