diff --git a/proto/ostracon/abci/types.proto b/proto/ostracon/abci/types.proto index f8c0a7e78..0819058fc 100644 --- a/proto/ostracon/abci/types.proto +++ b/proto/ostracon/abci/types.proto @@ -356,16 +356,16 @@ message TxResult { message Validator { bytes address = 1; // The first 20 bytes of SHA256(public key) // PubKey pub_key = 2 [(gogoproto.nullable)=false]; - int64 power = 3; // The voting power + int64 power = 3; // The staking power // *** Ostracon Extended Fields *** - int64 voting_power = 1000; + int64 voting_power = 1000; // The voting power } // ValidatorUpdate message ValidatorUpdate { ostracon.crypto.PublicKey pub_key = 1 [(gogoproto.nullable) = false]; - int64 power = 2; + int64 power = 2; // The staking power } // VoteInfo diff --git a/types/evidence.go b/types/evidence.go index 2c9cce212..23e6f5d46 100644 --- a/types/evidence.go +++ b/types/evidence.go @@ -224,14 +224,9 @@ var _ Evidence = &LightClientAttackEvidence{} func (l *LightClientAttackEvidence) ABCI() []abci.Evidence { abciEv := make([]abci.Evidence, len(l.ByzantineValidators)) for idx, val := range l.ByzantineValidators { - pb := abci.Validator{ - Address: val.Address, - Power: val.StakingPower, - VotingPower: val.VotingPower, - } abciEv[idx] = abci.Evidence{ Type: abci.EvidenceType_LIGHT_CLIENT_ATTACK, - Validator: pb, + Validator: OC2PB.Validator(val), Height: l.Height(), Time: l.Timestamp, TotalVotingPower: l.TotalVotingPower,