aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/main.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-04-10 21:52:01 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-04-10 21:52:01 +0800
commit0e4f21fc376fae88b59cb33a06a1ddd36a11a592 (patch)
treee7512b77374ada18387bde01065ecf1edaa51fce /whisper/main.go
parent7d8ce53eca90a6e93e49d584a2cff5e39aea40c0 (diff)
downloaddexon-0e4f21fc376fae88b59cb33a06a1ddd36a11a592.tar
dexon-0e4f21fc376fae88b59cb33a06a1ddd36a11a592.tar.gz
dexon-0e4f21fc376fae88b59cb33a06a1ddd36a11a592.tar.bz2
dexon-0e4f21fc376fae88b59cb33a06a1ddd36a11a592.tar.lz
dexon-0e4f21fc376fae88b59cb33a06a1ddd36a11a592.tar.xz
dexon-0e4f21fc376fae88b59cb33a06a1ddd36a11a592.tar.zst
dexon-0e4f21fc376fae88b59cb33a06a1ddd36a11a592.zip
whisper: polish the Envelope a bit, prep for tests.
Diffstat (limited to 'whisper/main.go')
-rw-r--r--whisper/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/whisper/main.go b/whisper/main.go
index 6a089f894..422f0fa3b 100644
--- a/whisper/main.go
+++ b/whisper/main.go
@@ -69,7 +69,7 @@ func selfSend(shh *whisper.Whisper, payload []byte) error {
})
// Wrap the payload and encrypt it
msg := whisper.NewMessage(payload)
- envelope, err := msg.Wrap(whisper.DefaultPow, whisper.Options{
+ envelope, err := msg.Wrap(whisper.DefaultProofOfWork, whisper.Options{
From: id,
To: &id.PublicKey,
TTL: whisper.DefaultTimeToLive,