whisper: moved a constant

This commit is contained in:
Vlad 2018-01-09 00:09:53 +02:00 committed by Guillaume Ballet
parent 90cf7a1727
commit 9f26907196

View file

@ -51,7 +51,6 @@ type Envelope struct {
// size returns the size of envelope as it is sent (i.e. public fields only)
func (e *Envelope) size() int {
const EnvelopeHeaderLength = 20
return EnvelopeHeaderLength + len(e.Data)
}