-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-built tendermint-proto with serialization annotations (#639)
* Re-built tendermint-proto with serialization annontations * Bumped tendermint-proto version number * AbciInfo reimplemented as domain type with JSON serialization * JSON serialization work * Block serialization work * Block JSON encoding fixed * Add test for JSON timestamp de/serialization precision Signed-off-by: Thane Thomson <connect@thanethomson.com> * Fix Go/chrono timestamp serialization compatibility Signed-off-by: Thane Thomson <connect@thanethomson.com> * Tendermint basic integration tests succeed, clippy fixes * part_set_header fix and others * More cleanup of serialization * txs fix and BlockMeta serialization * Test fixes, serialization fixes * tendermint integration tests all succeed * More test fixes * More test fixes * More test fixes * model-based tests updated * ConsensusParams domain type * genesis temp fix * Removed single_step tests as mentioned by Andrey * Merge conflict fix refix, voting_power tests removed as per Andrey * Added Hash custom serialization * Fixes some bisection test files * Restored voting_power tests * More test fixes * fmt fix * Disabled model-based single step tests until they can be recreated correctly * Enable alias for part_set_header Right now we need to allow for compatibility with the latest version of Tendermint, as well as v0.34.0-rc5. Between these versions, the `parts` field was renamed to `part_set_header` in the JSON serialization. We need to support both field names deserializing into the same data structures. Signed-off-by: Thane Thomson <connect@thanethomson.com> * Add Anca's changes and fix test failures I've added some changes that Anca made and have tweaked a few tests to get them to pass (the serialization was breaking, so I fixed the fixtures). Signed-off-by: Thane Thomson <connect@thanethomson.com> * cargo fmt Signed-off-by: Thane Thomson <connect@thanethomson.com> * Provide default validator set if none supplied in genesis Signed-off-by: Thane Thomson <connect@thanethomson.com> * add Eq to TrustThresholdFraction * Fix git clone/update mechanism for proto compiler Signed-off-by: Thane Thomson <connect@thanethomson.com> * Implement domain types for merke Proof * Add checks for abci_query proof deserialization Signed-off-by: Thane Thomson <connect@thanethomson.com> * Make the consensus parameter's version Option * Add alias "proofOps" for "proof" field in abci_query response Signed-off-by: Thane Thomson <connect@thanethomson.com> * Block TryFrom cleaning * Make structs with constructors non-exhaustive Signed-off-by: Thane Thomson <connect@thanethomson.com> * Update CHANGELOG Signed-off-by: Thane Thomson <connect@thanethomson.com> * Use simple constructor for validator set construction Signed-off-by: Thane Thomson <connect@thanethomson.com> * Restore getters for Block and SignedHeader Signed-off-by: Thane Thomson <connect@thanethomson.com> Co-authored-by: Thane Thomson <connect@thanethomson.com> Co-authored-by: Anca Zamfir <zamfiranca@gmail.com>
- Loading branch information
1 parent
e5484f5
commit 4cbf727
Showing
128 changed files
with
5,195 additions
and
1,409 deletions.
There are no files selected for viewing
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
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
Oops, something went wrong.