|
|
@ -135,18 +135,17 @@ message RequestVerifyVoteExtension { |
|
|
|
} |
|
|
|
|
|
|
|
message RequestPrepareProposal { |
|
|
|
// block_data is an array of transactions that will be included in a block, |
|
|
|
bytes hash = 1; |
|
|
|
tendermint.types.Header header = 2 [(gogoproto.nullable) = false]; |
|
|
|
// txs is an array of transactions that will be included in a block, |
|
|
|
// sent to the app for possible modifications. |
|
|
|
// applications can not exceed the size of the data passed to it. |
|
|
|
repeated bytes block_data = 1; |
|
|
|
// If an application decides to populate block_data with extra information, they can not exceed this value. |
|
|
|
int64 block_data_size = 2; |
|
|
|
// votes includes all votes from the previous block. This contains vote extension data that can be used in proposal |
|
|
|
// preparation. The votes here will then form the last commit that gets sent in the proposed block. |
|
|
|
repeated tendermint.types.Vote votes = 3; |
|
|
|
repeated bytes txs = 3; |
|
|
|
ExtendedCommitInfo local_last_commit = 4 [(gogoproto.nullable) = false]; |
|
|
|
repeated Evidence byzantine_validators = 5 [(gogoproto.nullable) = false]; |
|
|
|
// the modified transactions cannot exceed this size. |
|
|
|
int64 max_tx_bytes = 6; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
message RequestProcessProposal { |
|
|
|
bytes hash = 1; |
|
|
|
tendermint.types.Header header = 2 [(gogoproto.nullable) = false]; |
|
|
@ -330,7 +329,13 @@ message ResponseVerifyVoteExtension { |
|
|
|
} |
|
|
|
|
|
|
|
message ResponsePrepareProposal { |
|
|
|
repeated bytes block_data = 1; |
|
|
|
bool modified_tx = 1; |
|
|
|
repeated TxRecord tx_records = 2; |
|
|
|
bytes app_hash = 3; |
|
|
|
repeated ExecTxResult tx_results = 4; |
|
|
|
repeated ValidatorUpdate validator_updates = 5; |
|
|
|
tendermint.types.ConsensusParams consensus_param_updates = 6; |
|
|
|
repeated bytes app_signed_updates = 7; |
|
|
|
} |
|
|
|
|
|
|
|
message ResponseProcessProposal { |
|
|
@ -359,6 +364,11 @@ message CommitInfo { |
|
|
|
repeated VoteInfo votes = 2 [(gogoproto.nullable) = false]; |
|
|
|
} |
|
|
|
|
|
|
|
message ExtendedCommitInfo { |
|
|
|
int32 round = 1; |
|
|
|
repeated ExtendedVoteInfo votes = 2 [(gogoproto.nullable) = false]; |
|
|
|
} |
|
|
|
|
|
|
|
// Event allows application developers to attach additional information to |
|
|
|
// ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. |
|
|
|
// Later, transactions may be queried using these events. |
|
|
@ -399,6 +409,19 @@ message TxResult { |
|
|
|
ExecTxResult result = 4 [(gogoproto.nullable) = false]; |
|
|
|
} |
|
|
|
|
|
|
|
message TxRecord { |
|
|
|
TxAction action = 1; |
|
|
|
bytes tx = 2; |
|
|
|
|
|
|
|
// TxAction contains App-provided information on what to do with a transaction that is part of a raw proposal |
|
|
|
enum TxAction { |
|
|
|
UNKNOWN = 0; // Unknown action |
|
|
|
UNMODIFIED = 1; // The Application did not modify this transaction. |
|
|
|
ADDED = 2; // The Application added this transaction. |
|
|
|
REMOVED = 3; // The Application wants this transaction removed from the proposal and the mempool. |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//---------------------------------------- |
|
|
|
// Blockchain Types |
|
|
|
|
|
|
@ -423,6 +446,13 @@ message VoteInfo { |
|
|
|
reserved 4; // Placeholder for app_signed_extension in v0.37 |
|
|
|
} |
|
|
|
|
|
|
|
// ExtendedVoteInfo |
|
|
|
message ExtendedVoteInfo { |
|
|
|
Validator validator = 1 [(gogoproto.nullable) = false]; |
|
|
|
bool signed_last_block = 2; |
|
|
|
bytes vote_extension = 3; |
|
|
|
} |
|
|
|
|
|
|
|
enum EvidenceType { |
|
|
|
UNKNOWN = 0; |
|
|
|
DUPLICATE_VOTE = 1; |
|
|
|