Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
torao committed Sep 2, 2021
1 parent 71349c2 commit a1be081
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion state/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ func getBeginBlockValidatorInfo(block *types.Block, store Store,
for i, voter := range lastVoterSet.Voters {
commitSig := block.LastCommit.Signatures[i]
voteInfos[i] = abci.VoteInfo{
Validator: types.OC2PB.Validator(voter),
Validator: types.OC2PB.Validator(voter),
SignedLastBlock: !commitSig.Absent(),
}
}
Expand Down
4 changes: 2 additions & 2 deletions types/evidence.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ func (dve *DuplicateVoteEvidence) ABCI() []abci.Evidence {
return []abci.Evidence{{
Type: abci.EvidenceType_DUPLICATE_VOTE,
Validator: abci.Validator{
Address: dve.VoteA.ValidatorAddress,
Power: dve.ValidatorPower,
Address: dve.VoteA.ValidatorAddress,
Power: dve.ValidatorPower,
VotingPower: dve.VotingPower,
},
Height: dve.VoteA.Height,
Expand Down
4 changes: 2 additions & 2 deletions types/protobuf.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ func (oc2pb) Header(header *Header) tmproto.Header {

func (oc2pb) Validator(val *Validator) abci.Validator {
return abci.Validator{
Address: val.PubKey.Address(),
Power: val.StakingPower,
Address: val.PubKey.Address(),
Power: val.StakingPower,
VotingPower: val.VotingPower,
}
}
Expand Down

0 comments on commit a1be081

Please sign in to comment.