mobile: switched whisper version to v6

This commit is contained in:
Eugene Valeyev 2018-06-18 16:59:51 +03:00
parent 527c6ff4a3
commit 78e03595af
3 changed files with 5 additions and 6 deletions

View file

@ -20,7 +20,7 @@ package geth
import ( import (
"github.com/ethereum/go-ethereum/whisper/shhclient" "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. // 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. // SetMinimumPoW (experimental) sets the minimal PoW required by this node.
// This experimental function was introduced for the future dynamic adjustment of // 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. 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 // 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. // 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) return wc.client.Post(ctx.context, *message.newMessage)
} }

View file

@ -26,7 +26,7 @@ import (
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/rlp" "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 // A Nonce is a 64-bit hash which proves (combined with the mix-hash) that

View file

@ -3,7 +3,7 @@
// Redistribution and use in source and binary forms, with or without // Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are // modification, are permitted provided that the following conditions are
// met: // met:
// //
// * Redistributions of source code must retain the above copyright // * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer. // notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above // * Redistributions in binary form must reproduce the above
@ -13,7 +13,7 @@
// * Neither the name of Google Inc. nor the names of its // * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from // contributors may be used to endorse or promote products derived from
// this software without specific prior written permission. // this software without specific prior written permission.
// //
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR