aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/main.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/main.go
parent1a4cfc173eb3f62c5859d25744f3c0de119e1b59 (diff)
downloaddexon-f6efdd8aad96db24f29268b4393e95644dbbd18a.tar.gz
dexon-f6efdd8aad96db24f29268b4393e95644dbbd18a.tar.zst
dexon-f6efdd8aad96db24f29268b4393e95644dbbd18a.zip
whisper: shorten constants to TTL and PoW
Diffstat (limited to 'whisper/main.go')
-rw-r--r--whisper/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/whisper/main.go b/whisper/main.go
index 422f0fa3b..3c8c3801f 100644
--- a/whisper/main.go
+++ b/whisper/main.go
@@ -69,10 +69,10 @@ func selfSend(shh *whisper.Whisper, payload []byte) error {
})
// Wrap the payload and encrypt it
msg := whisper.NewMessage(payload)
- envelope, err := msg.Wrap(whisper.DefaultProofOfWork, whisper.Options{
+ envelope, err := msg.Wrap(whisper.DefaultPoW, whisper.Options{
From: id,
To: &id.PublicKey,
- TTL: whisper.DefaultTimeToLive,
+ TTL: whisper.DefaultTTL,
})
if err != nil {
return fmt.Errorf("failed to seal message: %v", err)