whisper: fix comment entity capitalizations

This commit is contained in:
Péter Szilágyi
2015-04-12 14:34:53 +03:00
parent f8a4cd7ec1
commit 5467e7b312
2 changed files with 7 additions and 7 deletions

View File

@ -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