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

28 lines
418 B
Go
Raw Normal View History

2019-07-17 22:25:42 +00:00
package whisper
import (
"github.com/status-im/status-go/eth-node/types"
2019-07-17 22:25:42 +00:00
)
type RequestOptions struct {
Topics []types.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() types.NewMessage {
msg := types.NewMessage{}
2019-07-17 22:25:42 +00:00
msg.TTL = 10
msg.PowTarget = 0.002
msg.PowTime = defaultPowTime
return msg
}