diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-04-14 20:16:02 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-04-14 20:16:02 +0800 |
commit | f6efdd8aad96db24f29268b4393e95644dbbd18a (patch) | |
tree | 74d85a83763f5e20f3f036e9b7ca19711be5770d /whisper/message_test.go | |
parent | 1a4cfc173eb3f62c5859d25744f3c0de119e1b59 (diff) | |
download | go-tangerine-f6efdd8aad96db24f29268b4393e95644dbbd18a.tar.gz go-tangerine-f6efdd8aad96db24f29268b4393e95644dbbd18a.tar.zst go-tangerine-f6efdd8aad96db24f29268b4393e95644dbbd18a.zip |
whisper: shorten constants to TTL and PoW
Diffstat (limited to 'whisper/message_test.go')
-rw-r--r-- | whisper/message_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/whisper/message_test.go b/whisper/message_test.go index 319bc6025..18a254e5c 100644 --- a/whisper/message_test.go +++ b/whisper/message_test.go @@ -13,7 +13,7 @@ func TestMessageSimpleWrap(t *testing.T) { payload := []byte("hello world") msg := NewMessage(payload) - if _, err := msg.Wrap(DefaultProofOfWork, Options{}); err != nil { + if _, err := msg.Wrap(DefaultPoW, Options{}); err != nil { t.Fatalf("failed to wrap message: %v", err) } if msg.Flags&signatureFlag != 0 { @@ -36,7 +36,7 @@ func TestMessageCleartextSignRecover(t *testing.T) { payload := []byte("hello world") msg := NewMessage(payload) - if _, err := msg.Wrap(DefaultProofOfWork, Options{ + if _, err := msg.Wrap(DefaultPoW, Options{ From: key, }); err != nil { t.Fatalf("failed to sign message: %v", err) @@ -69,7 +69,7 @@ func TestMessageAnonymousEncryptDecrypt(t *testing.T) { payload := []byte("hello world") msg := NewMessage(payload) - envelope, err := msg.Wrap(DefaultProofOfWork, Options{ + envelope, err := msg.Wrap(DefaultPoW, Options{ To: &key.PublicKey, }) if err != nil { @@ -104,7 +104,7 @@ func TestMessageFullCrypto(t *testing.T) { payload := []byte("hello world") msg := NewMessage(payload) - envelope, err := msg.Wrap(DefaultProofOfWork, Options{ + envelope, err := msg.Wrap(DefaultPoW, Options{ From: fromKey, To: &toKey.PublicKey, }) |