aboutsummaryrefslogtreecommitdiffstats
path: root/mobile
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-06-26 18:44:35 +0800
committerGitHub <noreply@github.com>2017-06-26 18:44:35 +0800
commitfeb29327066d6076d1802cdc1492d43a39cec276 (patch)
tree93f3231648b0f225c0c8d44bf81304282f93b605 /mobile
parentf321ed23fbaad8a13cc672f601b15f5272b4b2bb (diff)
parentea1d1825a8509b3353c535c9444861e15471942a (diff)
downloadgo-tangerine-feb29327066d6076d1802cdc1492d43a39cec276.tar
go-tangerine-feb29327066d6076d1802cdc1492d43a39cec276.tar.gz
go-tangerine-feb29327066d6076d1802cdc1492d43a39cec276.tar.bz2
go-tangerine-feb29327066d6076d1802cdc1492d43a39cec276.tar.lz
go-tangerine-feb29327066d6076d1802cdc1492d43a39cec276.tar.xz
go-tangerine-feb29327066d6076d1802cdc1492d43a39cec276.tar.zst
go-tangerine-feb29327066d6076d1802cdc1492d43a39cec276.zip
Merge pull request #14540 from bas-vk/whisper-api
whisperv5: integrate whisper and implement API
Diffstat (limited to 'mobile')
-rw-r--r--mobile/geth.go4
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)
}
}