mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 14:34:17 +00:00
test/e2e: fix secp failures (#5649)
This commit is contained in:
@@ -22,7 +22,7 @@ func TestEvidence_Misbehavior(t *testing.T) {
|
||||
for _, evidence := range block.Evidence.Evidence {
|
||||
switch evidence := evidence.(type) {
|
||||
case *types.DuplicateVoteEvidence:
|
||||
if bytes.Equal(evidence.VoteA.ValidatorAddress, node.Key.PubKey().Address()) {
|
||||
if bytes.Equal(evidence.VoteA.ValidatorAddress, node.PrivvalKey.PubKey().Address()) {
|
||||
nodeEvidence = evidence
|
||||
}
|
||||
default:
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user