Skip to content

Commit

Permalink
add trivial fix and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
torao committed Sep 3, 2021
1 parent a1be081 commit b15862e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 3 additions & 3 deletions proto/ostracon/abci/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 1 addition & 6 deletions types/evidence.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b15862e

Please sign in to comment.