test/e2e: fix secp failures (#5649)

This commit is contained in:
Marko
2020-11-16 12:31:32 +01:00
committed by GitHub
parent 8aa47c7da5
commit e0950515ff
12 changed files with 47 additions and 22 deletions
+3 -3
View File
@@ -60,7 +60,7 @@ func TestValidator_Propose(t *testing.T) {
if node.Mode != e2e.ModeValidator {
return
}
address := node.Key.PubKey().Address()
address := node.PrivvalKey.PubKey().Address()
valSchedule := newValidatorSchedule(*node.Testnet)
expectCount := 0
@@ -90,7 +90,7 @@ func TestValidator_Sign(t *testing.T) {
if node.Mode != e2e.ModeValidator {
return
}
address := node.Key.PubKey().Address()
address := node.PrivvalKey.PubKey().Address()
valSchedule := newValidatorSchedule(*node.Testnet)
expectCount := 0
@@ -160,7 +160,7 @@ func (s *validatorSchedule) Increment(heights int64) {
func makeVals(valMap map[*e2e.Node]int64) []*types.Validator {
vals := make([]*types.Validator, 0, len(valMap))
for node, power := range valMap {
vals = append(vals, types.NewValidator(node.Key.PubKey(), power))
vals = append(vals, types.NewValidator(node.PrivvalKey.PubKey(), power))
}
return vals
}