-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
abci: Change hashes' type from
Bytes
to tendermint::Hash
or `tend…
…ermint::AppHash` (#1232) * Use AppHash in a field of OfferSnapshot * tendermint: Implement Default for AppHash * Change last_block_app_hash field of Info to Hash * Remove AppHash::value, add AppHash::as_bytes The less cloney data accessor is better. * Use AppHash in a field of response::InitChain * Less allocatey deserializers for Hash * Change app_hash field type in Genesis to AppHash * Changelog entry for #1232
- Loading branch information
Showing
7 changed files
with
65 additions
and
41 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
.changelog/unreleased/breaking-changes/1095-abci-change-bytes-to-hash.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
- `[tendermint]` Change hash fields' type from `Bytes` | ||
([#1095](https://github.com/informalsystems/tendermint-rs/issues/1095)): | ||
|
||
| Struct | Field | Type | | ||
| ------------------------------ | --------------------- | --------- | | ||
| `abci::request::OfferSnapshot` | `app_hash` | `AppHash` | | ||
| `abci::response::Info` | `last_block_app_hash` | `AppHash` | | ||
| `abci::response::InitChain` | `app_hash` | `AppHash` | | ||
| `Genesis` | `app_hash` | `AppHash` | | ||
|
||
- `[tendermint]` Remove method `AppHash::value`, | ||
replaced with non-allocating `AppHash::as_bytes` | ||
[#1232](https://github.com/informalsystems/tendermint-rs/pull/1232). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters