whisper: libp2p implementation of Peer interface

This commit is contained in:
Guillaume Ballet 2018-03-02 23:10:15 +01:00
parent 842b6b85ad
commit b92195e2b6

View file

@ -112,6 +112,16 @@ func (stream *LibP2PStream) WriteMsg(msg p2p.Msg) error {
return nil return nil
} }
type LibP2PPeer struct {
PeerBase
id peer.ID
}
func (p *LibP2PPeer) ID() string {
return p.id.String()
}
type LibP2PWhisperServer struct { type LibP2PWhisperServer struct {
Host host.Host Host host.Host
} }