whisper: minor fix

This commit is contained in:
b00ris 2018-06-07 14:03:54 +03:00
parent 2e9d3bc0f7
commit 67f347be7e
No known key found for this signature in database
GPG key ID: 2F73E159EB73232C

View file

@ -289,10 +289,7 @@ func (whisper *Whisper) LightClientMode() bool {
return false
}
v, ok := val.(bool)
if !ok {
return false
}
return v
return v && ok
}
//LightClientModeConnectionRestricted indicates that connection to light client in light client mode not allowed