mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
whisper: more non-API-breaking changes
The remaining lint errors are because of auto-generated files and one is because an exported function has a non- exported return type. Changing this would break the API, and will be part of another commit for easier reversal.
This commit is contained in:
parent
ed72c7ad7e
commit
8ccc72025f
3 changed files with 4 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
// Whisper protocol parameters
|
||||
const (
|
||||
ProtocolVersion = uint64(6) // Protocol version number
|
||||
ProtocolVersionStr = "6.0" // The same, as a string
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue