mirror of
https://github.com/status-im/status-go.git
synced 2025-02-27 22:20:49 +00:00
* Rebase on 1.8.5 * Remove outdated patches and apply all others * Use shh_post that returns hash * Use bloom filter for request to mailserver * Remove tests for sending messages without subbing first * Fix deadlock in ethdb * Expect null if receipt is not yet created * Subscribe to messages before sending them in whisper test
24 lines
607 B
Go
24 lines
607 B
Go
package whisperv6
|
|
|
|
import (
|
|
"github.com/ethereum/go-ethereum/common"
|
|
"github.com/ethereum/go-ethereum/p2p/discover"
|
|
)
|
|
|
|
// EventType used to define known envelope events.
|
|
type EventType string
|
|
|
|
const (
|
|
// EventEnvelopeSent fires when envelope was sent to a peer.
|
|
EventEnvelopeSent EventType = "envelope.sent"
|
|
// EventEnvelopeExpired fires when envelop expired
|
|
EventEnvelopeExpired EventType = "envelope.expired"
|
|
)
|
|
|
|
// EnvelopeEvent used for envelopes events.
|
|
type EnvelopeEvent struct {
|
|
Event EventType
|
|
Hash common.Hash
|
|
Peer discover.NodeID
|
|
}
|