diff options
Diffstat (limited to 'swarm/network/simulation/node_test.go')
-rw-r--r-- | swarm/network/simulation/node_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/swarm/network/simulation/node_test.go b/swarm/network/simulation/node_test.go index 94f0b4fac..086ab606f 100644 --- a/swarm/network/simulation/node_test.go +++ b/swarm/network/simulation/node_test.go @@ -25,7 +25,7 @@ import ( "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/node" - "github.com/ethereum/go-ethereum/p2p/discover" + "github.com/ethereum/go-ethereum/p2p/enode" "github.com/ethereum/go-ethereum/p2p/simulations/adapters" "github.com/ethereum/go-ethereum/swarm/network" ) @@ -75,7 +75,7 @@ func TestUpDownNodeIDs(t *testing.T) { } } -func equalNodeIDs(one, other []discover.NodeID) bool { +func equalNodeIDs(one, other []enode.ID) bool { if len(one) != len(other) { return false } @@ -244,7 +244,7 @@ func TestUploadSnapshot(t *testing.T) { log.Debug("Creating simulation") s := New(map[string]ServiceFunc{ "bzz": func(ctx *adapters.ServiceContext, b *sync.Map) (node.Service, func(), error) { - addr := network.NewAddrFromNodeID(ctx.Config.ID) + addr := network.NewAddr(ctx.Config.Node()) hp := network.NewHiveParams() hp.Discovery = false config := &network.BzzConfig{ |