Init protocol when shh is active (#1862)
This commit is contained in:
parent
141f917e7c
commit
9c2c08d44c
|
@ -901,6 +901,18 @@ func (b *GethStatusBackend) injectAccountIntoServices() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if whisperService != nil {
|
||||||
|
st, err := b.statusNode.ShhExtService()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
if err := st.InitProtocol(identity, b.appDB); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
wakuService, err := b.statusNode.WakuService()
|
wakuService, err := b.statusNode.WakuService()
|
||||||
|
|
||||||
switch err {
|
switch err {
|
||||||
|
|
Loading…
Reference in New Issue