diff options
author | Bas van Kervel <basvankervel@gmail.com> | 2017-06-13 17:49:07 +0800 |
---|---|---|
committer | Bas van Kervel <basvankervel@gmail.com> | 2017-06-15 17:53:15 +0800 |
commit | b58a5016738b92db19e08ec87ef34ce3250fae6b (patch) | |
tree | fa9485b3f711204b14edae5dcbc812e624490c68 /mobile | |
parent | 80f7c6c2996ad47f70a5070c400b1fd87a20c59c (diff) | |
download | go-tangerine-b58a5016738b92db19e08ec87ef34ce3250fae6b.tar go-tangerine-b58a5016738b92db19e08ec87ef34ce3250fae6b.tar.gz go-tangerine-b58a5016738b92db19e08ec87ef34ce3250fae6b.tar.bz2 go-tangerine-b58a5016738b92db19e08ec87ef34ce3250fae6b.tar.lz go-tangerine-b58a5016738b92db19e08ec87ef34ce3250fae6b.tar.xz go-tangerine-b58a5016738b92db19e08ec87ef34ce3250fae6b.tar.zst go-tangerine-b58a5016738b92db19e08ec87ef34ce3250fae6b.zip |
whisperv5: integrate whisper and add whisper RPC simulator
Diffstat (limited to 'mobile')
-rw-r--r-- | mobile/geth.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mobile/geth.go b/mobile/geth.go index f254d39bb..7b39faade 100644 --- a/mobile/geth.go +++ b/mobile/geth.go @@ -169,7 +169,9 @@ func NewNode(datadir string, config *NodeConfig) (stack *Node, _ error) { } // Register the Whisper protocol if requested if config.WhisperEnabled { - if err := rawStack.Register(func(*node.ServiceContext) (node.Service, error) { return whisper.New(), nil }); err != nil { + if err := rawStack.Register(func(*node.ServiceContext) (node.Service, error) { + return whisper.New(&whisper.DefaultConfig), nil + }); err != nil { return nil, fmt.Errorf("whisper init: %v", err) } } |