diff options
author | obscuren <geffobscura@gmail.com> | 2014-12-13 05:23:42 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-12-13 05:23:42 +0800 |
commit | a17a1f9208f858601f6660dbd7f1b77dd9a3f3d9 (patch) | |
tree | 6f6f61cfd2dd41cc20d1bcae9604c1f09e07e42d /whisper/main.go | |
parent | ed1538248f2e7a44680d22a052a234a31b736624 (diff) | |
download | dexon-a17a1f9208f858601f6660dbd7f1b77dd9a3f3d9.tar dexon-a17a1f9208f858601f6660dbd7f1b77dd9a3f3d9.tar.gz dexon-a17a1f9208f858601f6660dbd7f1b77dd9a3f3d9.tar.bz2 dexon-a17a1f9208f858601f6660dbd7f1b77dd9a3f3d9.tar.lz dexon-a17a1f9208f858601f6660dbd7f1b77dd9a3f3d9.tar.xz dexon-a17a1f9208f858601f6660dbd7f1b77dd9a3f3d9.tar.zst dexon-a17a1f9208f858601f6660dbd7f1b77dd9a3f3d9.zip |
Implemented watching using filter package
* Added filters / watches
* Removed event dep
Diffstat (limited to 'whisper/main.go')
-rw-r--r-- | whisper/main.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/whisper/main.go b/whisper/main.go index 80050d899..2ee2f3ff1 100644 --- a/whisper/main.go +++ b/whisper/main.go @@ -8,6 +8,7 @@ import ( "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" @@ -17,9 +18,9 @@ import ( func main() { logger.AddLogSystem(logger.NewStdLogSystem(os.Stdout, log.LstdFlags, logger.InfoLevel)) - pub, sec := secp256k1.GenerateKeyPair() + pub, _ := secp256k1.GenerateKeyPair() - whisper := whisper.New(sec) + whisper := whisper.New(&event.TypeMux{}) srv := p2p.Server{ MaxPeers: 10, |