mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
whisper: re-insert #16757 that has been lost during a merge
This commit is contained in:
parent
ab6bdbd9b0
commit
461be87be3
1 changed files with 3 additions and 3 deletions
|
|
@ -159,9 +159,9 @@ func (sc *Client) DeleteSymmetricKey(ctx context.Context, id string) error {
|
|||
}
|
||||
|
||||
// Post a message onto the network.
|
||||
func (sc *Client) Post(ctx context.Context, message whisper.NewMessage) error {
|
||||
var ignored bool
|
||||
return sc.c.CallContext(ctx, &ignored, "shh_post", message)
|
||||
func (sc *Client) Post(ctx context.Context, message whisper.NewMessage) (string, error) {
|
||||
var hash string
|
||||
return hash, sc.c.CallContext(ctx, &hash, "shh_post", message)
|
||||
}
|
||||
|
||||
// SubscribeMessages subscribes to messages that match the given criteria. This method
|
||||
|
|
|
|||
Loading…
Reference in a new issue