status-go/protocol/transport/whisper/whisper.go

28 lines
470 B
Go
Raw Normal View History

2019-07-17 22:25:42 +00:00
package whisper
import (
whispertypes "github.com/status-im/status-go/protocol/transport/whisper/types"
2019-07-17 22:25:42 +00:00
)
type RequestOptions struct {
Topics []whispertypes.TopicType
2019-07-17 22:25:42 +00:00
Password string
Limit int
From int64 // in seconds
To int64 // in seconds
}
const (
defaultPowTime = 1
)
func DefaultWhisperMessage() whispertypes.NewMessage {
msg := whispertypes.NewMessage{}
2019-07-17 22:25:42 +00:00
msg.TTL = 10
msg.PowTarget = 0.002
msg.PowTime = defaultPowTime
return msg
}