Init protocol when shh is active (#1862)

This commit is contained in:
Andrea Maria Piana 2020-02-17 18:18:30 +01:00 committed by GitHub
parent 141f917e7c
commit 9c2c08d44c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -1 +1 @@
0.45.0
0.45.1

View File

@ -901,6 +901,18 @@ func (b *GethStatusBackend) injectAccountIntoServices() error {
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()
switch err {