diff options
author | obscuren <geffobscura@gmail.com> | 2014-12-08 21:25:52 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-12-08 21:25:52 +0800 |
commit | 76842b0df8b5605682362bd57fbd6eb315bcaf1f (patch) | |
tree | 8671edce47cfc7212de29eaa200c96bd2c6e47ec /whisper/envelope.go | |
parent | e3a8412df3fe75fe498a3fce64fd2fd691a18183 (diff) | |
download | dexon-76842b0df8b5605682362bd57fbd6eb315bcaf1f.tar.gz dexon-76842b0df8b5605682362bd57fbd6eb315bcaf1f.tar.zst dexon-76842b0df8b5605682362bd57fbd6eb315bcaf1f.zip |
Additional checks and debug output
Diffstat (limited to 'whisper/envelope.go')
-rw-r--r-- | whisper/envelope.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/whisper/envelope.go b/whisper/envelope.go index f9254843c..8e66a7bbb 100644 --- a/whisper/envelope.go +++ b/whisper/envelope.go @@ -12,7 +12,7 @@ import ( ) const ( - DefaultTtl = 50 * time.Second + DefaultPow = 50 * time.Millisecond ) type Envelope struct { @@ -56,7 +56,7 @@ func NewEnvelope(ttl time.Duration, topics [][]byte, data *Message) *Envelope { } func (self *Envelope) Seal() { - self.proveWork(DefaultTtl) + self.proveWork(DefaultPow) } func (self *Envelope) proveWork(dura time.Duration) { |