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

@ -18,7 +18,7 @@ func TestEvent(t *testing.T) {
})
msg := NewMessage([]byte(fmt.Sprintf("Hello world. This is whisper-go. Incase you're wondering; the time is %v", time.Now())))
envelope, err := msg.Wrap(DefaultPow, Options{
envelope, err := msg.Wrap(DefaultProofOfWork, Options{
TTL: DefaultTimeToLive,
From: id,
To: &id.PublicKey,