proto: increase lint level to basic and fix lint warnings (#5096)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
Erik Grinaker
2020-07-08 15:27:09 +02:00
committed by GitHub
parent 58113e31ae
commit ab20f3520f
6 changed files with 202 additions and 201 deletions

View File

@@ -81,8 +81,8 @@ message RequestBeginBlock {
}
enum CheckTxType {
New = 0;
Recheck = 1;
NEW = 0 [(gogoproto.enumvalue_customname) = "New"];
RECHECK = 1 [(gogoproto.enumvalue_customname) = "Recheck"];
}
message RequestCheckTx {
@@ -317,7 +317,7 @@ message Event {
// One usage is indexing transaction results.
message TxResult {
int64 height = 1;
uint32 Index = 2;
uint32 index = 2;
bytes tx = 3;
ResponseDeliverTx result = 4 [(gogoproto.nullable) = false];
}

View File

@@ -945,7 +945,7 @@ func (m *BlockMeta) GetNumTxs() int64 {
type TxProof struct {
RootHash []byte `protobuf:"bytes,1,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"`
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
Proof *merkle.Proof `protobuf:"bytes,3,opt,name=Proof,proto3" json:"Proof,omitempty"`
Proof *merkle.Proof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"`
}
func (m *TxProof) Reset() { *m = TxProof{} }
@@ -1022,14 +1022,14 @@ func init() {
func init() { proto.RegisterFile("tendermint/types/types.proto", fileDescriptor_d3a6e55e2345de56) }
var fileDescriptor_d3a6e55e2345de56 = []byte{
// 1315 bytes of a gzipped FileDescriptorProto
// 1313 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x5d, 0x6f, 0x1a, 0x47,
0x17, 0xf6, 0xc2, 0x62, 0xe0, 0x00, 0x36, 0x5e, 0xf9, 0x4d, 0x08, 0x4e, 0x30, 0x2f, 0x79, 0xf3,
0xd6, 0x49, 0x2b, 0x88, 0x1c, 0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, 0xcc, 0x1f, 0x1d, 0x97, 0xb3, 0xe1, 0x8b, 0xc1, 0x41, 0xb3, 0x7d, 0x36, 0x3e,
0x7e, 0x7e, 0x52, 0x52, 0x5e, 0x9c, 0x94, 0x94, 0x5f, 0x4f, 0x4a, 0xca, 0xb3, 0x57, 0xa5, 0x85,
0x17, 0xaf, 0x4a, 0x0b, 0x3f, 0xbd, 0x2a, 0x2d, 0x7c, 0xfe, 0xfe, 0xd0, 0x66, 0xa3, 0x49, 0xbf,
0x3a, 0xa0, 0xe3, 0x5a, 0xf4, 0x27, 0xc5, 0x6c, 0x28, 0x7e, 0x34, 0x9c, 0xfe, 0xb9, 0xd1, 0x5f,
0x44, 0xfb, 0x9d, 0x3f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x23, 0x4d, 0x38, 0xbf, 0x89, 0x0c, 0x00,
0x00,
}
func (m *PartSetHeader) Marshal() (dAtA []byte, err error) {

View File

@@ -152,5 +152,5 @@ message BlockMeta {
message TxProof {
bytes root_hash = 1;
bytes data = 2;
tendermint.crypto.merkle.Proof Proof = 3;
tendermint.crypto.merkle.Proof proof = 3;
}