aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/message.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-04-14 20:16:02 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-04-14 20:16:02 +0800
commitf6efdd8aad96db24f29268b4393e95644dbbd18a (patch)
tree74d85a83763f5e20f3f036e9b7ca19711be5770d /whisper/message.go
parent1a4cfc173eb3f62c5859d25744f3c0de119e1b59 (diff)
downloadgo-tangerine-f6efdd8aad96db24f29268b4393e95644dbbd18a.tar.gz
go-tangerine-f6efdd8aad96db24f29268b4393e95644dbbd18a.tar.zst
go-tangerine-f6efdd8aad96db24f29268b4393e95644dbbd18a.zip
whisper: shorten constants to TTL and PoW
Diffstat (limited to 'whisper/message.go')
-rw-r--r--whisper/message.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/whisper/message.go b/whisper/message.go
index a4de18f65..0513627b4 100644
--- a/whisper/message.go
+++ b/whisper/message.go
@@ -62,7 +62,7 @@ func NewMessage(payload []byte) *Message {
func (self *Message) Wrap(pow time.Duration, options Options) (*Envelope, error) {
// Use the default TTL if non was specified
if options.TTL == 0 {
- options.TTL = DefaultTimeToLive
+ options.TTL = DefaultTTL
}
// Sign and encrypt the message if requested
if options.From != nil {