-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(rpc): Refactor the serialization of note commitment trees (#8533)
* Remove `orchard::tree::SerializedTree` * Move `GetTreestate` to the `trees` module * Update comments * Remove `sapling::tree::SerializedTree` * Make the serialization compatible with `zcashd` * Simplify error handling * Derive `Default` for `GetTreestate` * Remove old TODOs * Simplify the `z_get_treestate` method * Add & refactor tests * Avoid a concurrency issue * Fix docs * Impl `Default` for `GetTreestate` * Update zebra-rpc/src/methods.rs Co-authored-by: Arya <aryasolhi@gmail.com> * Update docs Co-authored-by: Arya <aryasolhi@gmail.com> * Rename `rsp` to `tree_state` Co-authored-by: Arya <aryasolhi@gmail.com> * Describe the serialization format of treestates * Refactor error handling * Refactor imports * Apply suggestions from code review Co-authored-by: Arya <aryasolhi@gmail.com> * Use `treestate` in snapshots * Use `ok_or_server_error` * Bump `zcash_primitives` from 0.13.0 to 0.14.0 Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com> * Remove an outdated TODO * Add a TODO on negative heights for treestates * Revert "Bump `zcash_primitives` from 0.13.0 to 0.14.0" This reverts commit 0799cb2. --------- Co-authored-by: Arya <aryasolhi@gmail.com> Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
- Loading branch information
1 parent
b06a122
commit eade2a8
Showing
15 changed files
with
376 additions
and
525 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
Oops, something went wrong.