whisper: polish the Envelope a bit, prep for tests.

This commit is contained in:
Péter Szilágyi
2015-04-10 16:52:01 +03:00
parent 7d8ce53eca
commit 0e4f21fc37
6 changed files with 75 additions and 65 deletions

View File

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