whisper: fallback to default config if none is specified

pull/14540/head
Bas van Kervel 8 years ago
parent 3d66ba56ef
commit b6b0e00198
  1. 4
      whisper/whisperv5/whisper.go

@ -109,6 +109,10 @@ type Whisper struct {
// New creates a Whisper client ready to communicate through the Ethereum P2P network.
func New(cfg *Config) *Whisper {
if cfg == nil {
cfg = &DefaultConfig
}
whisper := &Whisper{
privateKeys: make(map[string]*ecdsa.PrivateKey),
symKeys: make(map[string][]byte),

Loading…
Cancel
Save