cleanup: unused parameters (#8372)

This commit is contained in:
Sam Kleinman
2022-04-18 16:45:21 -04:00
committed by GitHub
parent c372390fea
commit efd4f4a40b
17 changed files with 54 additions and 59 deletions

View File

@@ -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)

View File

@@ -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)