whisper: re-insert #16757 that has been lost during a merge

This commit is contained in:
Guillaume Ballet 2018-06-04 23:22:56 +02:00
parent ab6bdbd9b0
commit 461be87be3

View file

@ -159,9 +159,9 @@ func (sc *Client) DeleteSymmetricKey(ctx context.Context, id string) error {
} }
// Post a message onto the network. // Post a message onto the network.
func (sc *Client) Post(ctx context.Context, message whisper.NewMessage) error { func (sc *Client) Post(ctx context.Context, message whisper.NewMessage) (string, error) {
var ignored bool var hash string
return sc.c.CallContext(ctx, &ignored, "shh_post", message) return hash, sc.c.CallContext(ctx, &hash, "shh_post", message)
} }
// SubscribeMessages subscribes to messages that match the given criteria. This method // SubscribeMessages subscribes to messages that match the given criteria. This method