aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/envelope.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-04-12 19:34:53 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-04-12 19:34:53 +0800
commit5467e7b312a29f492ce3063686711ea0bea6dbc3 (patch)
treea181f11e8cfd0f47befd8868c23ad65e10f84edf /whisper/envelope.go
parentf8a4cd7ec17774ad841f85241855820424ccfd2d (diff)
downloaddexon-5467e7b312a29f492ce3063686711ea0bea6dbc3.tar
dexon-5467e7b312a29f492ce3063686711ea0bea6dbc3.tar.gz
dexon-5467e7b312a29f492ce3063686711ea0bea6dbc3.tar.bz2
dexon-5467e7b312a29f492ce3063686711ea0bea6dbc3.tar.lz
dexon-5467e7b312a29f492ce3063686711ea0bea6dbc3.tar.xz
dexon-5467e7b312a29f492ce3063686711ea0bea6dbc3.tar.zst
dexon-5467e7b312a29f492ce3063686711ea0bea6dbc3.zip
whisper: fix comment entity capitalizations
Diffstat (limited to 'whisper/envelope.go')
-rw-r--r--whisper/envelope.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/whisper/envelope.go b/whisper/envelope.go
index 6ad48dd25..f35a40a42 100644
--- a/whisper/envelope.go
+++ b/whisper/envelope.go
@@ -59,7 +59,7 @@ func (self *Envelope) Seal(pow time.Duration) {
}
}
-// Valid checks whether the claimed proof of work was indeed executed.
+// valid checks whether the claimed proof of work was indeed executed.
// TODO: Is this really useful? Isn't this always true?
func (self *Envelope) valid() bool {
d := make([]byte, 64)
@@ -69,7 +69,7 @@ func (self *Envelope) valid() bool {
return common.FirstBitSet(common.BigD(crypto.Sha3(d))) > 0
}
-// RlpWithoutNonce returns the RLP encoded envelope contents, except the nonce.
+// rlpWithoutNonce returns the RLP encoded envelope contents, except the nonce.
func (self *Envelope) rlpWithoutNonce() []byte {
enc, _ := rlp.EncodeToBytes([]interface{}{self.Expiry, self.TTL, self.Topics, self.Data})
return enc