validator signed status bool -> enum

This commit is contained in:
William Banfield
2022-03-18 16:35:03 -04:00
parent c6fd149b70
commit 5be77cf245
8 changed files with 408 additions and 326 deletions
+24 -9
View File
@@ -769,10 +769,10 @@ Most of the data structures used in ABCI are shared [common data structures](../
* **Fields**:
| Name | Type | Description | Field Number |
|-----------------------------|-------------------------|----------------------------------------------------------------|--------------|
| validator | [Validator](#validator) | The validator that sent the vote. | 1 |
| signed_last_block | bool | Indicates whether or not the validator signed the last block. | 2 |
| Name | Type | Description | Field Number |
|-----------------------|-------------------------------|----------------------------------------------------------------|--------------|
| validator | [Validator](#validator) | The validator that sent the vote. | 1 |
| signed_last_block | [SignedStatus](#SignedStatus) | Indicates whether or not the validator signed the last block. | 2 |
* **Usage**:
* Indicates whether a validator signed the last block, allowing for rewards based on validator availability.
@@ -782,11 +782,11 @@ Most of the data structures used in ABCI are shared [common data structures](../
* **Fields**:
| Name | Type | Description | Field Number |
|-------------------|-------------------------|------------------------------------------------------------------------------|--------------|
| validator | [Validator](#validator) | The validator that sent the vote. | 1 |
| signed_last_block | bool | Indicates whether or not the validator signed the last block. | 2 |
| vote_extension | bytes | Non-deterministic extension provided by the sending validator's Application. | 3 |
| Name | Type | Description | Field Number |
|-------------------|-------------------------------|------------------------------------------------------------------------------|--------------|
| validator | [Validator](#validator) | The validator that sent the vote. | 1 |
| signed_last_block | [SignedStatus](#SignedStatus) | Indicates whether or not the validator signed the last block. | 2 |
| vote_extension | bytes | Non-deterministic extension provided by the sending validator's Application. | 3 |
* **Usage**:
* Indicates whether a validator signed the last block, allowing for rewards based on validator availability.
@@ -900,6 +900,21 @@ enum VerifyStatus {
* If `Status` is `ACCEPT`, Tendermint will accept the vote as valid.
* If `Status` is `REJECT`, Tendermint will reject the vote as invalid.
### SignedStatus
```proto
enum SignedStatus {
UNKNOWN_SIGN_STATUS = 0; // Unknown status.
SIGNED = 1; // Validator signed the last block.
DID_NOT_SIGN = 2; // Validator did not sign the last block.
}
```
* **Usage**:
* Used within the [VoteInfo](#VoteInfo) and [ExtendedVoteInfo](#ExtendedVoteInfo).
* If `SignedLastBlock` is `SIGNED`, the associated validator signed the last block.
* If `SignedLastBlock` is `DID_NOT_SIGN`, the associated validator did not sign the last block.
* If `SignedLastBlock` should never be set to `UNKNOWN_SIGNED_STATUS`.
### CanonicalVoteExtension