whisper: shorten constants to TTL and PoW

This commit is contained in:
Péter Szilágyi
2015-04-14 15:16:02 +03:00
parent 1a4cfc173e
commit f6efdd8aad
5 changed files with 15 additions and 15 deletions

View File

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