From 6e434338ec6322fa7df6582a563af36a304dda53 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Fri, 3 Jul 2020 14:24:12 +0400 Subject: [PATCH] abci/types: add comment for TotalVotingPower (#5081) Refs #4581 --- abci/types/types.pb.go | 13 ++++++++----- proto/tendermint/abci/types/types.proto | 3 +++ proto/tendermint/consensus/walmsgs.pb.go | 4 +--- proto/tendermint/crypto/keys/types.pb.go | 4 +--- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/abci/types/types.pb.go b/abci/types/types.pb.go index 947a90b5e..fb4e59509 100644 --- a/abci/types/types.pb.go +++ b/abci/types/types.pb.go @@ -2936,11 +2936,14 @@ func (m *VoteInfo) GetSignedLastBlock() bool { } type Evidence struct { - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Validator Validator `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator"` - Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` - Time time.Time `protobuf:"bytes,4,opt,name=time,proto3,stdtime" json:"time"` - TotalVotingPower int64 `protobuf:"varint,5,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"` + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Validator Validator `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator"` + Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` + Time time.Time `protobuf:"bytes,4,opt,name=time,proto3,stdtime" json:"time"` + // Total voting power of the validator set in case the ABCI application does + // not store historical validators. + // https://github.com/tendermint/tendermint/issues/4581 + TotalVotingPower int64 `protobuf:"varint,5,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"` } func (m *Evidence) Reset() { *m = Evidence{} } diff --git a/proto/tendermint/abci/types/types.proto b/proto/tendermint/abci/types/types.proto index 10cc34c0c..e4bc3901f 100644 --- a/proto/tendermint/abci/types/types.proto +++ b/proto/tendermint/abci/types/types.proto @@ -352,6 +352,9 @@ message Evidence { (gogoproto.nullable) = false, (gogoproto.stdtime) = true ]; + // Total voting power of the validator set in case the ABCI application does + // not store historical validators. + // https://github.com/tendermint/tendermint/issues/4581 int64 total_voting_power = 5; } diff --git a/proto/tendermint/consensus/walmsgs.pb.go b/proto/tendermint/consensus/walmsgs.pb.go index a834b7a0b..4161abbc4 100644 --- a/proto/tendermint/consensus/walmsgs.pb.go +++ b/proto/tendermint/consensus/walmsgs.pb.go @@ -369,9 +369,7 @@ func init() { proto.RegisterType((*TimedWALMessage)(nil), "tendermint.consensus.TimedWALMessage") } -func init() { - proto.RegisterFile("tendermint/consensus/walmsgs.proto", fileDescriptor_ba295fe8d98f7e98) -} +func init() { proto.RegisterFile("tendermint/consensus/walmsgs.proto", fileDescriptor_ba295fe8d98f7e98) } var fileDescriptor_ba295fe8d98f7e98 = []byte{ // 542 bytes of a gzipped FileDescriptorProto diff --git a/proto/tendermint/crypto/keys/types.pb.go b/proto/tendermint/crypto/keys/types.pb.go index a672f4656..c3889ec1c 100644 --- a/proto/tendermint/crypto/keys/types.pb.go +++ b/proto/tendermint/crypto/keys/types.pb.go @@ -178,9 +178,7 @@ func init() { proto.RegisterType((*PrivateKey)(nil), "tendermint.crypto.keys.PrivateKey") } -func init() { - proto.RegisterFile("tendermint/crypto/keys/types.proto", fileDescriptor_6e4a90a3275dcf41) -} +func init() { proto.RegisterFile("tendermint/crypto/keys/types.proto", fileDescriptor_6e4a90a3275dcf41) } var fileDescriptor_6e4a90a3275dcf41 = []byte{ // 205 bytes of a gzipped FileDescriptorProto