github.com/cosmos/cosmos-sdk@v0.50.10/proto/tendermint/types/validator.proto (about)

     1  syntax = "proto3";
     2  package tendermint.types;
     3  
     4  option go_package = "github.com/cometbft/cometbft/proto/tendermint/types";
     5  
     6  import "gogoproto/gogo.proto";
     7  import "tendermint/crypto/keys.proto";
     8  
     9  // BlockIdFlag indicates which BlockID the signature is for
    10  enum BlockIDFlag {
    11    option (gogoproto.goproto_enum_stringer) = true;
    12    option (gogoproto.goproto_enum_prefix)   = false;
    13  
    14    BLOCK_ID_FLAG_UNKNOWN = 0 [(gogoproto.enumvalue_customname) = "BlockIDFlagUnknown"]; // indicates an error condition
    15    BLOCK_ID_FLAG_ABSENT  = 1 [(gogoproto.enumvalue_customname) = "BlockIDFlagAbsent"];  // the vote was not received
    16    BLOCK_ID_FLAG_COMMIT  = 2
    17        [(gogoproto.enumvalue_customname) = "BlockIDFlagCommit"]; // voted for the block that received the majority
    18    BLOCK_ID_FLAG_NIL = 3 [(gogoproto.enumvalue_customname) = "BlockIDFlagNil"]; // voted for nil
    19  }
    20  
    21  message ValidatorSet {
    22    repeated Validator validators         = 1;
    23    Validator          proposer           = 2;
    24    int64              total_voting_power = 3;
    25  }
    26  
    27  message Validator {
    28    bytes                       address           = 1;
    29    tendermint.crypto.PublicKey pub_key           = 2 [(gogoproto.nullable) = false];
    30    int64                       voting_power      = 3;
    31    int64                       proposer_priority = 4;
    32  }
    33  
    34  message SimpleValidator {
    35    tendermint.crypto.PublicKey pub_key      = 1;
    36    int64                       voting_power = 2;
    37  }