diff --git a/whisper/whisperv6/api.go b/whisper/whisperv6/api.go index 492aba724b..e399ff0e19 100644 --- a/whisper/whisperv6/api.go +++ b/whisper/whisperv6/api.go @@ -36,6 +36,7 @@ const ( filterTimeout = 300 // filters are considered timeout out after filterTimeout seconds ) +// List of errors var ( ErrSymAsym = errors.New("specify either a symmetric or an asymmetric key") ErrInvalidSymmetricKey = errors.New("invalid symmetric key") diff --git a/whisper/whisperv6/doc.go b/whisper/whisperv6/doc.go index 152c312e3a..699fd5c767 100644 --- a/whisper/whisperv6/doc.go +++ b/whisper/whisperv6/doc.go @@ -37,6 +37,7 @@ import ( "time" ) +// Whisper protocol parameters const ( ProtocolVersion = uint64(6) // Protocol version number ProtocolVersionStr = "6.0" // The same, as a string diff --git a/whisper/whisperv6/filter.go b/whisper/whisperv6/filter.go index b5b6fca348..411f09b27e 100644 --- a/whisper/whisperv6/filter.go +++ b/whisper/whisperv6/filter.go @@ -166,7 +166,8 @@ func (f *Filter) expectsSymmetricEncryption() bool { return f.KeySym != nil } -// Trigger +// Trigger adds a yet-unknown message to the filter's list of +// received messages. func (f *Filter) Trigger(msg *ReceivedMessage) { f.mutex.Lock() defer f.mutex.Unlock()