diff --git a/cmd/swarm/explore.go b/cmd/swarm/explore.go index 992852d5cc..0add64900a 100644 --- a/cmd/swarm/explore.go +++ b/cmd/swarm/explore.go @@ -48,11 +48,12 @@ func explore(ctx *cli.Context) { defer f.Close() fileStore := storage.NewFileStore(&storage.FakeChunkStore{}, storage.NewFileStoreParams()) - _, err = fileStore.GetAllReferences(context.TODO(), f, false) + refs, err := fileStore.GetAllReferences(context.TODO(), f, false) if err != nil { utils.Fatalf("%v\n", err) } else { - //fmt.Printf("%v\n", addr) - fmt.Println("Done.") + for _, r := range refs { + fmt.Println(r.String()) + } } } diff --git a/cmd/swarm/swarm-smoke/chunkExplorer.go b/cmd/swarm/swarm-smoke/chunkExplorer.go index 0b727071ff..f50ee3adf0 100644 --- a/cmd/swarm/swarm-smoke/chunkExplorer.go +++ b/cmd/swarm/swarm-smoke/chunkExplorer.go @@ -17,8 +17,6 @@ package main import ( - "fmt" - "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rpc" cli "gopkg.in/urfave/cli.v1"