whisper: polish the messages, fix some bugs, tests
Bugs fixed: - Use randomly generated flags as the spec required. - During envelope opening check the first bit only for signature.
This commit is contained in:
@@ -28,7 +28,9 @@ type MessageEvent struct {
|
||||
Message *Message
|
||||
}
|
||||
|
||||
const DefaultTtl = 50 * time.Second
|
||||
const (
|
||||
DefaultTimeToLive = 50 * time.Second
|
||||
)
|
||||
|
||||
type Whisper struct {
|
||||
protocol p2p.Protocol
|
||||
|
Reference in New Issue
Block a user