Browse Source

Removed protobufs related to vote extensions

pull/7804/head
Sergio Mena 3 years ago
parent
commit
4566f1e302
1 changed files with 7 additions and 33 deletions
  1. +7
    -33
      proto/tendermint/abci/types.proto

+ 7
- 33
proto/tendermint/abci/types.proto View File

@ -37,10 +37,10 @@ message Request {
RequestApplySnapshotChunk apply_snapshot_chunk = 14; RequestApplySnapshotChunk apply_snapshot_chunk = 14;
RequestPrepareProposal prepare_proposal = 15; RequestPrepareProposal prepare_proposal = 15;
RequestProcessProposal process_proposal = 16; RequestProcessProposal process_proposal = 16;
RequestExtendVote extend_vote = 17;
RequestVerifyVoteExtension verify_vote_extension = 18;
RequestFinalizeBlock finalize_block = 19; RequestFinalizeBlock finalize_block = 19;
} }
reserved 17; // Placeholder for RequestExtendVote in v0.37
reserved 18; // Placeholder for RequestVerifyVoteExtension in v0.37
} }
message RequestEcho { message RequestEcho {
@ -142,21 +142,6 @@ message RequestProcessProposal {
repeated Evidence byzantine_validators = 5 [(gogoproto.nullable) = false]; repeated Evidence byzantine_validators = 5 [(gogoproto.nullable) = false];
} }
// Extends a vote with application-side injection
message RequestExtendVote {
bytes hash = 1;
int64 height = 2;
}
// Verify the vote extension
message RequestVerifyVoteExtension {
bytes app_signed = 1;
bytes tendermint_signed = 2;
bytes hash = 3;
bytes validator_address = 4;
int64 height = 5;
}
message RequestFinalizeBlock { message RequestFinalizeBlock {
bytes hash = 1; bytes hash = 1;
tendermint.types.Header header = 2 [(gogoproto.nullable) = false]; tendermint.types.Header header = 2 [(gogoproto.nullable) = false];
@ -187,10 +172,10 @@ message Response {
ResponseApplySnapshotChunk apply_snapshot_chunk = 15; ResponseApplySnapshotChunk apply_snapshot_chunk = 15;
ResponsePrepareProposal prepare_proposal = 16; ResponsePrepareProposal prepare_proposal = 16;
ResponseProcessProposal process_proposal = 17; ResponseProcessProposal process_proposal = 17;
ResponseExtendVote extend_vote = 18;
ResponseVerifyVoteExtension verify_vote_extension = 19;
ResponseFinalizeBlock finalize_block = 20; ResponseFinalizeBlock finalize_block = 20;
} }
reserved 18; // Placeholder for ResponseExtendVote in v0.37
reserved 19; // Placeholder for ResponseVerifyVoteExtension in v0.37
} }
// nondeterministic // nondeterministic
@ -323,7 +308,7 @@ message ResponsePrepareProposal {
repeated ExecTxResult tx_results = 4; repeated ExecTxResult tx_results = 4;
repeated ValidatorUpdate validator_updates = 5; repeated ValidatorUpdate validator_updates = 5;
tendermint.types.ConsensusParams consensus_param_updates = 6; tendermint.types.ConsensusParams consensus_param_updates = 6;
repeated bytes app_signed_updates = 7;
reserved 7; // Placeholder for app_signed_updates in v0.37
} }
message ResponseProcessProposal { message ResponseProcessProposal {
@ -334,15 +319,6 @@ message ResponseProcessProposal {
tendermint.types.ConsensusParams consensus_param_updates = 5; tendermint.types.ConsensusParams consensus_param_updates = 5;
} }
message ResponseExtendVote {
bytes app_signed = 1;
bytes tendermint_signed = 2;
}
message ResponseVerifyVoteExtension {
bool accept = 1;
}
message ResponseFinalizeBlock { message ResponseFinalizeBlock {
repeated Event block_events = 1 repeated Event block_events = 1
[(gogoproto.nullable) = false, (gogoproto.jsontag) = "events,omitempty"]; [(gogoproto.nullable) = false, (gogoproto.jsontag) = "events,omitempty"];
@ -436,8 +412,8 @@ message ValidatorUpdate {
message VoteInfo { message VoteInfo {
Validator validator = 1 [(gogoproto.nullable) = false]; Validator validator = 1 [(gogoproto.nullable) = false];
bool signed_last_block = 2; bool signed_last_block = 2;
bytes tendermint_signed_extension = 3;
bytes app_signed_extension = 4;
reserved 3; // Placeholder for tendermint_signed_extension in v0.37
reserved 4; // Placeholder for app_signed_extension in v0.37
} }
enum EvidenceType { enum EvidenceType {
@ -488,7 +464,5 @@ service ABCIApplication {
rpc ApplySnapshotChunk(RequestApplySnapshotChunk) returns (ResponseApplySnapshotChunk); rpc ApplySnapshotChunk(RequestApplySnapshotChunk) returns (ResponseApplySnapshotChunk);
rpc PrepareProposal(RequestPrepareProposal) returns (ResponsePrepareProposal); rpc PrepareProposal(RequestPrepareProposal) returns (ResponsePrepareProposal);
rpc ProcessProposal(RequestProcessProposal) returns (ResponseProcessProposal); rpc ProcessProposal(RequestProcessProposal) returns (ResponseProcessProposal);
rpc ExtendVote(RequestExtendVote) returns (ResponseExtendVote);
rpc VerifyVoteExtension(RequestVerifyVoteExtension) returns (ResponseVerifyVoteExtension);
rpc FinalizeBlock(RequestFinalizeBlock) returns (ResponseFinalizeBlock); rpc FinalizeBlock(RequestFinalizeBlock) returns (ResponseFinalizeBlock);
} }

Loading…
Cancel
Save