Skip to content

Commit

Permalink
chore: regen proto files
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Jul 19, 2023
1 parent 8db1715 commit 8e61d55
Show file tree
Hide file tree
Showing 6 changed files with 208 additions and 202 deletions.
374 changes: 188 additions & 186 deletions abci/types/types.pb.go

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions proto/tendermint/abci/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ message RequestOfferSnapshot {

// Used during state sync to retrieve snapshot chunks from peers.
message RequestLoadSnapshotChunk {
uint64 height = 1; // The height of the snapshot the chunks belongs to.
uint32 version = 2; // The application-specific format of the snapshot the chunk belongs to.
bytes chunk_id = 3; // The chunk id is a hash of the node of subtree of the snapshot.
uint64 height = 1; // The height of the snapshot the chunks belongs to.
uint32 version = 2; // The application-specific format of the snapshot the chunk belongs to.
bytes chunk_id = 3; // The chunk id is a hash of the node of subtree of the snapshot.
}

// Applies a snapshot chunk.
Expand Down Expand Up @@ -614,13 +614,13 @@ message ResponseApplySnapshotChunk {
repeated bytes next_chunks = 4;

enum Result {
UNKNOWN = 0; // Unknown result, abort all snapshot restoration
ACCEPT = 1; // Chunk successfully accepted
ABORT = 2; // Abort all snapshot restoration
RETRY = 3; // Retry chunk (combine with refetch and reject)
RETRY_SNAPSHOT = 4; // Retry snapshot (combine with refetch and reject)
REJECT_SNAPSHOT = 5; // Reject this snapshot, try others
COMPLETE_SNAPSHOT = 6; // Complete this snapshot, no more chunks
UNKNOWN = 0; // Unknown result, abort all snapshot restoration
ACCEPT = 1; // Chunk successfully accepted
ABORT = 2; // Abort all snapshot restoration
RETRY = 3; // Retry chunk (combine with refetch and reject)
RETRY_SNAPSHOT = 4; // Retry snapshot (combine with refetch and reject)
REJECT_SNAPSHOT = 5; // Reject this snapshot, try others
COMPLETE_SNAPSHOT = 6; // Complete this snapshot, no more chunks
}
}

Expand Down
1 change: 1 addition & 0 deletions proto/tendermint/crypto/keys.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions proto/tendermint/p2p/conn.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions proto/tendermint/p2p/types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions spec/abci++/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ Applies a snapshot chunk.

| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| index | [uint32](#uint32) | | The chunk index, starting from 0. Tenderdash applies chunks sequentially. |
| chunk_id | [bytes](#bytes) | | The chunk index, starting from 0. Tenderdash applies chunks sequentially. |
| chunk | [bytes](#bytes) | | The binary chunk contents, as returned by LoadSnapshotChunk. |
| sender | [string](#string) | | The P2P ID of the node who sent this chunk. |

Expand Down Expand Up @@ -499,8 +499,8 @@ Used during state sync to retrieve snapshot chunks from peers.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| height | [uint64](#uint64) | | The height of the snapshot the chunks belongs to. |
| format | [uint32](#uint32) | | The application-specific format of the snapshot the chunk belongs to. |
| chunk | [uint32](#uint32) | | The chunk index, starting from 0 for the initial chunk. |
| version | [uint32](#uint32) | | The application-specific format of the snapshot the chunk belongs to. |
| chunk_id | [bytes](#bytes) | | The chunk id is a hash of the node of subtree of the snapshot. |



Expand Down Expand Up @@ -819,8 +819,9 @@ from this condition, but not sure), and _p_ receives a Precommit message for rou
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| result | [ResponseApplySnapshotChunk.Result](#tendermint-abci-ResponseApplySnapshotChunk-Result) | | The result of applying this chunk. |
| refetch_chunks | [uint32](#uint32) | repeated | Refetch and reapply the given chunks, regardless of `result`. Only the listed chunks will be refetched, and reapplied in sequential order. |
| refetch_chunks | [bytes](#bytes) | repeated | Refetch and reapply the given chunks, regardless of `result`. Only the listed chunks will be refetched, and reapplied in sequential order. |
| reject_senders | [string](#string) | repeated | Reject the given P2P senders, regardless of `Result`. Any chunks already applied will not be refetched unless explicitly requested, but queued chunks from these senders will be discarded, and new chunks or other snapshots rejected. |
| next_chunks | [bytes](#bytes) | repeated | Next chunks provides the list of chunks that should be requested next, if any. |



Expand Down Expand Up @@ -1088,8 +1089,7 @@ nondeterministic
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| height | [uint64](#uint64) | | The height at which the snapshot was taken |
| format | [uint32](#uint32) | | The application-specific snapshot format |
| chunks | [uint32](#uint32) | | Number of chunks in the snapshot |
| version | [uint32](#uint32) | | The application-specific snapshot version |
| hash | [bytes](#bytes) | | Arbitrary snapshot hash, equal only if identical |
| metadata | [bytes](#bytes) | | Arbitrary application metadata |

Expand Down Expand Up @@ -1256,6 +1256,7 @@ Type of transaction check
| RETRY | 3 | Retry chunk (combine with refetch and reject) |
| RETRY_SNAPSHOT | 4 | Retry snapshot (combine with refetch and reject) |
| REJECT_SNAPSHOT | 5 | Reject this snapshot, try others |
| COMPLETE_SNAPSHOT | 6 | Complete this snapshot, no more chunks |



Expand Down

0 comments on commit 8e61d55

Please sign in to comment.