diff options
Diffstat (limited to 'swarm/pss/protocol_test.go')
-rw-r--r-- | swarm/pss/protocol_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/swarm/pss/protocol_test.go b/swarm/pss/protocol_test.go index 0b6ea33ca..f4209fea5 100644 --- a/swarm/pss/protocol_test.go +++ b/swarm/pss/protocol_test.go @@ -27,7 +27,7 @@ import ( "github.com/ethereum/go-ethereum/common" "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/swarm/log" ) @@ -111,8 +111,7 @@ func testProtocol(t *testing.T) { } // add right peer's public key as protocol peer on left - nid, _ := discover.HexID("0x00") // this hack is needed to satisfy the p2p method - p := p2p.NewPeer(nid, fmt.Sprintf("%x", common.FromHex(loaddrhex)), []p2p.Cap{}) + p := p2p.NewPeer(enode.ID{}, fmt.Sprintf("%x", common.FromHex(loaddrhex)), []p2p.Cap{}) _, err = pssprotocols[lnodeinfo.ID].protocol.AddPeer(p, PingTopic, true, rpubkey) if err != nil { t.Fatal(err) |