core/state, p2p/discover, trie, whisper: avoid unnecessary conversions (#19870)
No need to convert these types.
This commit is contained in:
committed by
Péter Szilágyi
parent
a1f8549262
commit
5183483c53
@ -76,7 +76,7 @@ func TestWhisperBasic(t *testing.T) {
|
||||
t.Fatalf("failed w.Envelopes().")
|
||||
}
|
||||
|
||||
derived := pbkdf2.Key([]byte(peerID), nil, 65356, aesKeyLength, sha256.New)
|
||||
derived := pbkdf2.Key(peerID, nil, 65356, aesKeyLength, sha256.New)
|
||||
if !validateDataIntegrity(derived, aesKeyLength) {
|
||||
t.Fatalf("failed validateSymmetricKey with param = %v.", derived)
|
||||
}
|
||||
|
Reference in New Issue
Block a user