github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/tm2/pkg/bft/consensus/consensus.proto (about)

     1  syntax = "proto3";
     2  package tm;
     3  
     4  option go_package = "github.com/gnolang/gno/tm2/pkg/bft/consensus/pb";
     5  
     6  // imports
     7  import "github.com/gnolang/gno/tm2/pkg/bft/consensus/types/cstypes.proto";
     8  import "github.com/gnolang/gno/tm2/pkg/bft/abci/types/abci.proto";
     9  import "github.com/gnolang/gno/tm2/pkg/crypto/merkle/merkle.proto";
    10  import "github.com/gnolang/gno/tm2/pkg/bft/types/types.proto";
    11  import "github.com/gnolang/gno/tm2/pkg/bitarray/bitarray.proto";
    12  import "google/protobuf/any.proto";
    13  import "google/protobuf/duration.proto";
    14  
    15  // messages
    16  message NewRoundStepMessage {
    17  	sint64 height = 1 [json_name = "Height"];
    18  	sint64 round = 2 [json_name = "Round"];
    19  	uint32 step = 3 [json_name = "Step"];
    20  	sint64 seconds_since_start_time = 4 [json_name = "SecondsSinceStartTime"];
    21  	sint64 last_commit_round = 5 [json_name = "LastCommitRound"];
    22  }
    23  
    24  message NewValidBlockMessage {
    25  	sint64 height = 1 [json_name = "Height"];
    26  	sint64 round = 2 [json_name = "Round"];
    27  	PartSetHeader block_parts_header = 3 [json_name = "BlockPartsHeader"];
    28  	BitArray block_parts = 4 [json_name = "BlockParts"];
    29  	bool is_commit = 5 [json_name = "IsCommit"];
    30  }
    31  
    32  message ProposalMessage {
    33  	Proposal proposal = 1 [json_name = "Proposal"];
    34  }
    35  
    36  message ProposalPOLMessage {
    37  	sint64 height = 1 [json_name = "Height"];
    38  	sint64 proposal_pol_round = 2 [json_name = "ProposalPOLRound"];
    39  	BitArray proposal_pol = 3 [json_name = "ProposalPOL"];
    40  }
    41  
    42  message BlockPartMessage {
    43  	sint64 height = 1 [json_name = "Height"];
    44  	sint64 round = 2 [json_name = "Round"];
    45  	Part part = 3 [json_name = "Part"];
    46  }
    47  
    48  message VoteMessage {
    49  	Vote vote = 1 [json_name = "Vote"];
    50  }
    51  
    52  message HasVoteMessage {
    53  	sint64 height = 1 [json_name = "Height"];
    54  	sint64 round = 2 [json_name = "Round"];
    55  	uint32 type = 3 [json_name = "Type"];
    56  	sint64 index = 4 [json_name = "Index"];
    57  }
    58  
    59  message VoteSetMaj23Message {
    60  	sint64 height = 1 [json_name = "Height"];
    61  	sint64 round = 2 [json_name = "Round"];
    62  	uint32 type = 3 [json_name = "Type"];
    63  	BlockID block_id = 4 [json_name = "BlockID"];
    64  }
    65  
    66  message VoteSetBitsMessage {
    67  	sint64 height = 1 [json_name = "Height"];
    68  	sint64 round = 2 [json_name = "Round"];
    69  	uint32 type = 3 [json_name = "Type"];
    70  	BlockID block_id = 4 [json_name = "BlockID"];
    71  	BitArray votes = 5 [json_name = "Votes"];
    72  }
    73  
    74  message newRoundStepInfo {
    75  	HRS hrs = 1;
    76  }
    77  
    78  message msgInfo {
    79  	google.protobuf.Any msg = 1;
    80  	string peer_id = 2 [json_name = "peer_key"];
    81  }
    82  
    83  message timeoutInfo {
    84  	google.protobuf.Duration duration = 1;
    85  	sint64 height = 2;
    86  	sint64 round = 3;
    87  	uint32 step = 4;
    88  }