aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/pss/client/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'swarm/pss/client/client.go')
-rw-r--r--swarm/pss/client/client.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/swarm/pss/client/client.go b/swarm/pss/client/client.go
index 532a22384..d541081d3 100644
--- a/swarm/pss/client/client.go
+++ b/swarm/pss/client/client.go
@@ -27,7 +27,7 @@ import (
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/discover"
+ "github.com/ethereum/go-ethereum/p2p/enode"
"github.com/ethereum/go-ethereum/p2p/protocols"
"github.com/ethereum/go-ethereum/rlp"
"github.com/ethereum/go-ethereum/rpc"
@@ -283,8 +283,7 @@ func (c *Client) RunProtocol(ctx context.Context, proto *p2p.Protocol) error {
break
}
c.peerPool[topicobj][pubkeyid] = rw
- nid, _ := discover.HexID("0x00")
- p := p2p.NewPeer(nid, fmt.Sprintf("%v", addr), []p2p.Cap{})
+ p := p2p.NewPeer(enode.ID{}, fmt.Sprintf("%v", addr), []p2p.Cap{})
go proto.Run(p, c.peerPool[topicobj][pubkeyid])
}
go func() {
@@ -334,8 +333,7 @@ func (c *Client) AddPssPeer(pubkeyid string, addr []byte, spec *protocols.Spec)
c.poolMu.Lock()
c.peerPool[topic][pubkeyid] = rw
c.poolMu.Unlock()
- nid, _ := discover.HexID("0x00")
- p := p2p.NewPeer(nid, fmt.Sprintf("%v", addr), []p2p.Cap{})
+ p := p2p.NewPeer(enode.ID{}, fmt.Sprintf("%v", addr), []p2p.Cap{})
go c.protos[topic].Run(p, c.peerPool[topic][pubkeyid])
}
return nil