Commit a042d4c
authored
chore: Fix
* Fix max compact difficulty calculation in tests
* Refactor duplicate tree checks to use if let instead of unwrap
* Add clippy allow for `unwrap_in_result` in tests
* Refactor error handling by replacing panics with Result propagation
* Add `clippy::unwrap_in_result` to `zebra-utils`
* fmt
* Remove unnecessary clone call in get_block_1 test
* Remove unused variable
* Use Amount::zero instead of try_from for zero nonnegative amount
Simplify amount initialization by replacing try_from(0) with Amount::zero()
for clarity and consistency in joinsplit and sprout pool checks
* Fix typo in comment from "Defence" to "Defense"
* Add Default derive to CompactSizeMessage struct
* Add From<SerializationError> for io::Error implementation
* Simplify `zcash_serialize_{bytes, empty_list}`
* Handle minimal height case safely in subtree validation
* Move clippy allow for unwrap_in_result inside append method
* Add From impl for Sprout NoteCommitmentTreeError in ValidateContextError
* Simplify sprout anchor tree appends using error propagation
* Improve error handling in height_from_signed_int conversions
* Add error handling for conversion and overflow checks in ZIP-317 logic
* Add explicit expect for mem_bytes length in truncate_zero_be_bytesclippy lints in Rust beta (#10050)1 parent 7a7572f commit a042d4c
File tree
99 files changed
+279
-119
lines changed- tower-batch-control/tests
- zebra-chain/src
- amount
- block
- chain_tip
- history_tree
- orchard
- parameters
- checkpoint/list
- network
- primitives/zcash_history
- sapling
- serialization
- sprout
- transaction
- unmined
- transparent
- value_balance
- work
- difficulty
- tests
- zebra-consensus/src
- block
- subsidy
- funding_streams
- checkpoint
- primitives
- ed25519
- groth16
- redjubjub
- redpallas
- router
- transaction
- zebra-network/src
- address_book
- config
- isolated
- tor
- meta_addr
- peer_set
- candidate_set
- initialize
- recent_by_ip
- inventory_registry
- set
- unready_service
- peer
- client
- connection
- handshake
- minimum_peer_version
- protocol/external
- codec
- zebra-rpc
- src
- indexer
- methods
- types/get_block_template/zip317
- queue
- server
- tests
- zebra-script/src
- zebra-state
- src
- service
- chain_tip
- check
- finalized_state
- disk_db
- disk_format
- upgrade
- zebra_db/block
- non_finalized_state
- queued_blocks
- read
- address
- tests
- zebra-utils/src/bin
- block-template-to-proposal
- search-issue-refs
- zebra-checkpoints
- zebrad
- src/components
- inbound/tests
- mempool
- storage/tests
- tests
- sync/tests
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
99 files changed
+279
-119
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
605 | | - | |
606 | | - | |
607 | | - | |
| 605 | + | |
608 | 606 | | |
609 | 607 | | |
610 | 608 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
712 | 712 | | |
713 | 713 | | |
714 | 714 | | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
| 715 | + | |
721 | 716 | | |
722 | 717 | | |
723 | 718 | | |
724 | | - | |
725 | | - | |
726 | | - | |
| 719 | + | |
727 | 720 | | |
728 | 721 | | |
729 | 722 | | |
730 | | - | |
731 | | - | |
| 723 | + | |
732 | 724 | | |
733 | 725 | | |
734 | 726 | | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
743 | 731 | | |
744 | 732 | | |
745 | 733 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
0 commit comments