aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/shhclient
diff options
context:
space:
mode:
authorEli <elihanover@yahoo.com>2018-05-02 14:17:17 +0800
committerGuillaume Ballet <gballet@gmail.com>2018-05-02 14:17:17 +0800
commit9f6af6f812453f7ba30822606bb2a04ba8872ccb (patch)
tree10de4aef53ec6d7811747dc47b33d942f15752d9 /whisper/shhclient
parent1da33028ce88c4365d99471977098f4911fd38fa (diff)
downloaddexon-9f6af6f812453f7ba30822606bb2a04ba8872ccb.tar
dexon-9f6af6f812453f7ba30822606bb2a04ba8872ccb.tar.gz
dexon-9f6af6f812453f7ba30822606bb2a04ba8872ccb.tar.bz2
dexon-9f6af6f812453f7ba30822606bb2a04ba8872ccb.tar.lz
dexon-9f6af6f812453f7ba30822606bb2a04ba8872ccb.tar.xz
dexon-9f6af6f812453f7ba30822606bb2a04ba8872ccb.tar.zst
dexon-9f6af6f812453f7ba30822606bb2a04ba8872ccb.zip
whisper: Golint fixes in whisper packages (#16637)
Diffstat (limited to 'whisper/shhclient')
-rw-r--r--whisper/shhclient/client.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/whisper/shhclient/client.go b/whisper/shhclient/client.go
index bbe694baa..7b25e739e 100644
--- a/whisper/shhclient/client.go
+++ b/whisper/shhclient/client.go
@@ -67,7 +67,6 @@ func (sc *Client) SetMaxMessageSize(ctx context.Context, size uint32) 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
@@ -77,7 +76,7 @@ func (sc *Client) SetMinimumPoW(ctx context.Context, pow float64) error {
return sc.c.CallContext(ctx, &ignored, "shh_setMinPoW", pow)
}
-// Marks specific peer trusted, which will allow it to send historic (expired) messages.
+// MarkTrustedPeer marks specific peer trusted, which will allow it to send historic (expired) messages.
// Note This function is not adding new nodes, the node needs to exists as a peer.
func (sc *Client) MarkTrustedPeer(ctx context.Context, enode string) error {
var ignored bool