mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-05 04:55:18 +00:00
cleanup: unused parameters (#8372)
This commit is contained in:
@@ -295,7 +295,14 @@ func TestMockEvidenceValidateBasic(t *testing.T) {
|
||||
|
||||
func makeVote(
|
||||
ctx context.Context,
|
||||
t *testing.T, val PrivValidator, chainID string, valIndex int32, height int64, round int32, step int, blockID BlockID,
|
||||
t *testing.T,
|
||||
val PrivValidator,
|
||||
chainID string,
|
||||
valIndex int32,
|
||||
height int64,
|
||||
round int32,
|
||||
step int,
|
||||
blockID BlockID,
|
||||
time time.Time,
|
||||
) *Vote {
|
||||
pubKey, err := val.GetPubKey(ctx)
|
||||
|
||||
@@ -14,11 +14,11 @@ import (
|
||||
|
||||
func TestABCIPubKey(t *testing.T) {
|
||||
pkEd := ed25519.GenPrivKey().PubKey()
|
||||
err := testABCIPubKey(t, pkEd, ABCIPubKeyTypeEd25519)
|
||||
err := testABCIPubKey(t, pkEd)
|
||||
assert.NoError(t, err)
|
||||
}
|
||||
|
||||
func testABCIPubKey(t *testing.T, pk crypto.PubKey, typeStr string) error {
|
||||
func testABCIPubKey(t *testing.T, pk crypto.PubKey) error {
|
||||
abciPubKey, err := encoding.PubKeyToProto(pk)
|
||||
require.NoError(t, err)
|
||||
pk2, err := encoding.PubKeyFromProto(abciPubKey)
|
||||
|
||||
Reference in New Issue
Block a user