mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
mobile: switched whisper version to v6
This commit is contained in:
parent
527c6ff4a3
commit
78e03595af
3 changed files with 5 additions and 6 deletions
|
|
@ -20,7 +20,7 @@ package geth
|
|||
|
||||
import (
|
||||
"github.com/ethereum/go-ethereum/whisper/shhclient"
|
||||
whisper "github.com/ethereum/go-ethereum/whisper/whisperv5"
|
||||
whisper "github.com/ethereum/go-ethereum/whisper/whisperv6"
|
||||
)
|
||||
|
||||
// WhisperClient provides access to the Ethereum APIs.
|
||||
|
|
@ -53,7 +53,6 @@ func (wc *WhisperClient) SetMaxMessageSize(ctx *Context, size int32) error {
|
|||
}
|
||||
|
||||
// SetMinimumPoW (experimental) sets the minimal PoW required by this node.
|
||||
|
||||
// This experimental function was introduced for the future dynamic adjustment of
|
||||
// PoW requirement. If the node is overwhelmed with messages, it should raise the
|
||||
// PoW requirement and notify the peers. The new value should be set relative to
|
||||
|
|
@ -132,7 +131,7 @@ func (wc *WhisperClient) DeleteSymmetricKey(ctx *Context, id string) error {
|
|||
}
|
||||
|
||||
// Post a message onto the network.
|
||||
func (wc *WhisperClient) Post(ctx *Context, message *NewMessage) error {
|
||||
func (wc *WhisperClient) Post(ctx *Context, message *NewMessage) (string, error) {
|
||||
return wc.client.Post(ctx.context, *message.newMessage)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ import (
|
|||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/core/types"
|
||||
"github.com/ethereum/go-ethereum/rlp"
|
||||
whisper "github.com/ethereum/go-ethereum/whisper/whisperv5"
|
||||
whisper "github.com/ethereum/go-ethereum/whisper/whisperv6"
|
||||
)
|
||||
|
||||
// A Nonce is a 64-bit hash which proves (combined with the mix-hash) that
|
||||
|
|
|
|||
Loading…
Reference in a new issue