librustzcash/components/zcash_protocol
Kris Nuttycombe 1b3433e0dd Add correct `BlockHeight` subtraction & remove panics.
In contrast to the implementation of `Sub<BlockHeight> for BlockHeight`
that was removed in version `0.3.0`, a saturating subtraction for block
heights having a return type of `u32` makes sense for `BlockHeight`.
Subtracting one block height from another yields the delta between them.

Other block height addition and subtraction operations have been made
saturating, removing panics and the possibility of overflow.
2024-08-27 16:44:00 -06:00
..
src Add correct `BlockHeight` subtraction & remove panics. 2024-08-27 16:44:00 -06:00
CHANGELOG.md Add correct `BlockHeight` subtraction & remove panics. 2024-08-27 16:44:00 -06:00
Cargo.toml Release zcash_protocol version 0.3.0 2024-08-26 15:59:35 -06:00
LICENSE-APACHE Add stub for a `zcash_protocol` crate. 2024-03-05 09:45:24 -07:00
LICENSE-MIT Apply suggestions from code review 2024-03-05 13:36:15 -07:00
README.md Add stub for a `zcash_protocol` crate. 2024-03-05 09:45:24 -07:00

README.md

zcash_protocol

Zcash network constants and value types.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.