mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
whisper: libp2p implementation of Peer interface
This commit is contained in:
parent
842b6b85ad
commit
b92195e2b6
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue