Browse Source

abci/types: add comment for TotalVotingPower (#5081)

Refs #4581
pull/5088/head
Anton Kaliaev 4 years ago
committed by GitHub
parent
commit
6e434338ec
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 11 deletions
  1. +8
    -5
      abci/types/types.pb.go
  2. +3
    -0
      proto/tendermint/abci/types/types.proto
  3. +1
    -3
      proto/tendermint/consensus/walmsgs.pb.go
  4. +1
    -3
      proto/tendermint/crypto/keys/types.pb.go

+ 8
- 5
abci/types/types.pb.go View File

@ -2936,11 +2936,14 @@ func (m *VoteInfo) GetSignedLastBlock() bool {
} }
type Evidence struct { 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{} } func (m *Evidence) Reset() { *m = Evidence{} }


+ 3
- 0
proto/tendermint/abci/types/types.proto View File

@ -352,6 +352,9 @@ message Evidence {
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.stdtime) = true (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; int64 total_voting_power = 5;
} }


+ 1
- 3
proto/tendermint/consensus/walmsgs.pb.go View File

@ -369,9 +369,7 @@ func init() {
proto.RegisterType((*TimedWALMessage)(nil), "tendermint.consensus.TimedWALMessage") 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{ var fileDescriptor_ba295fe8d98f7e98 = []byte{
// 542 bytes of a gzipped FileDescriptorProto // 542 bytes of a gzipped FileDescriptorProto


+ 1
- 3
proto/tendermint/crypto/keys/types.pb.go View File

@ -178,9 +178,7 @@ func init() {
proto.RegisterType((*PrivateKey)(nil), "tendermint.crypto.keys.PrivateKey") 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{ var fileDescriptor_6e4a90a3275dcf41 = []byte{
// 205 bytes of a gzipped FileDescriptorProto // 205 bytes of a gzipped FileDescriptorProto


Loading…
Cancel
Save