aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/main.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-16 00:14:02 +0800
committerobscuren <geffobscura@gmail.com>2014-12-16 00:14:02 +0800
commit01a6db93241a01e98a0467b628423c9b5b1361cb (patch)
treedefc185c17bd88e32c021748ba7a19748496dac7 /whisper/main.go
parent993280ec03a8bd8e108da7e222c98efa8482084b (diff)
downloadgo-tangerine-01a6db93241a01e98a0467b628423c9b5b1361cb.tar
go-tangerine-01a6db93241a01e98a0467b628423c9b5b1361cb.tar.gz
go-tangerine-01a6db93241a01e98a0467b628423c9b5b1361cb.tar.bz2
go-tangerine-01a6db93241a01e98a0467b628423c9b5b1361cb.tar.lz
go-tangerine-01a6db93241a01e98a0467b628423c9b5b1361cb.tar.xz
go-tangerine-01a6db93241a01e98a0467b628423c9b5b1361cb.tar.zst
go-tangerine-01a6db93241a01e98a0467b628423c9b5b1361cb.zip
Added whisper debug interface + whisper fixes
Diffstat (limited to 'whisper/main.go')
-rw-r--r--whisper/main.go14
1 files changed, 2 insertions, 12 deletions
diff --git a/whisper/main.go b/whisper/main.go
index 2ee2f3ff1..edd5f7004 100644
--- a/whisper/main.go
+++ b/whisper/main.go
@@ -5,10 +5,8 @@ package main
import (
"fmt"
"log"
- "net"
"os"
- "github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/p2p"
"github.com/ethereum/go-ethereum/whisper"
@@ -20,12 +18,12 @@ func main() {
pub, _ := secp256k1.GenerateKeyPair()
- whisper := whisper.New(&event.TypeMux{})
+ whisper := whisper.New()
srv := p2p.Server{
MaxPeers: 10,
Identity: p2p.NewSimpleClientIdentity("whisper-go", "1.0", "", string(pub)),
- ListenAddr: ":30303",
+ ListenAddr: ":30300",
NAT: p2p.UPNP(),
Protocols: []p2p.Protocol{whisper.Protocol()},
@@ -35,13 +33,5 @@ func main() {
os.Exit(1)
}
- // add seed peers
- seed, err := net.ResolveTCPAddr("tcp", "poc-7.ethdev.com:30300")
- if err != nil {
- fmt.Println("couldn't resolve:", err)
- os.Exit(1)
- }
- srv.SuggestPeer(seed.IP, seed.Port, nil)
-
select {}
}