mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
whisper: moved a constant
This commit is contained in:
parent
5d71ee3a2d
commit
e33ef228f4
2 changed files with 2 additions and 1 deletions
|
|
@ -58,6 +58,8 @@ const (
|
|||
keyIdSize = 32 // in bytes
|
||||
bloomFilterSize = 64 // in bytes
|
||||
|
||||
EnvelopeHeaderLength = 20
|
||||
|
||||
MaxMessageSize = uint32(10 * 1024 * 1024) // maximum accepted size of a message.
|
||||
DefaultMaxMessageSize = uint32(1024 * 1024)
|
||||
DefaultMinimumPoW = 0.2
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue