diff options
author | Egon Elbre <egonelbre@gmail.com> | 2017-08-08 19:48:06 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-08-08 19:48:06 +0800 |
commit | d375193797e8198a82c6a1796064ffb289c6956e (patch) | |
tree | e725c3f2b03367933e4832bb603458b0c9bce500 /whisper/whisperv5/message_test.go | |
parent | 374c49e0ac0f636eb37a31833f91f28ad1859750 (diff) | |
download | go-tangerine-d375193797e8198a82c6a1796064ffb289c6956e.tar go-tangerine-d375193797e8198a82c6a1796064ffb289c6956e.tar.gz go-tangerine-d375193797e8198a82c6a1796064ffb289c6956e.tar.bz2 go-tangerine-d375193797e8198a82c6a1796064ffb289c6956e.tar.lz go-tangerine-d375193797e8198a82c6a1796064ffb289c6956e.tar.xz go-tangerine-d375193797e8198a82c6a1796064ffb289c6956e.tar.zst go-tangerine-d375193797e8198a82c6a1796064ffb289c6956e.zip |
whisper: fix megacheck warnings (#14925)
* whisper: fix megacheck warnings
* whisper/whisperv5: regenerate json codec to fix unused override type
Diffstat (limited to 'whisper/whisperv5/message_test.go')
-rw-r--r-- | whisper/whisperv5/message_test.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/whisper/whisperv5/message_test.go b/whisper/whisperv5/message_test.go index aa82a02f3..2edf945df 100644 --- a/whisper/whisperv5/message_test.go +++ b/whisper/whisperv5/message_test.go @@ -25,11 +25,6 @@ import ( "github.com/ethereum/go-ethereum/rlp" ) -func copyFromBuf(dst []byte, src []byte, beg int) int { - copy(dst, src[beg:]) - return beg + len(dst) -} - func generateMessageParams() (*MessageParams, error) { // set all the parameters except p.Dst and p.Padding @@ -158,7 +153,7 @@ func TestMessageWrap(t *testing.T) { params.TTL = 1000000 params.WorkTime = 1 params.PoW = 10000000.0 - env, err = msg2.Wrap(params) + _, err = msg2.Wrap(params) if err == nil { t.Fatalf("unexpectedly reached the PoW target with seed %d.", seed) } |