Zebra/zebra-chain/src/block
teor 1c31225aac
Implement Expanded to Compact Difficulty Conversion (#1196)
* Implement Expanded to Compact Difficulty
* Implement Arbitrary for CompactDifficulty
Remove the derive, and generate values from random block
hashes.
* Implement Arbitrary for ExpandedDifficulty and Work
* Use Arbitrary for CompactDifficulty in Arbitrary for Block
* Test difficulty on all block test vectors
And cleanup some duplicate test code
* Round-trip tests for compact test cases
* Round-trip tests for compact difficulty in block test vectors
* Make Add for Work return PartialCumulativeWork
Remove AddAssign for Work
Rewrite a proptest using Sub for PartialCumulativeWork
Use Arbitrary for Work
* Add roundtrip work sum tests
* Add roundtrip comparison difficulty tests
* Add failing proptest cases due to test bugs
* Use Some(_) rather than _.into()
* Reduce visibility of difficulty type inner values
* Split work and other difficulty proptests
This change makes sure that rejected work values don't disable property
tests on other types.
2020-10-30 11:36:59 +10:00
..
tests Run deserialize_blockheader on every test vector 2020-10-28 21:24:28 -04:00
arbitrary.rs Implement Expanded to Compact Difficulty Conversion (#1196) 2020-10-30 11:36:59 +10:00
hash.rs Reverse displayed endianness of transaction and block hashes (#1171) 2020-10-22 07:54:02 +10:00
header.rs Rename any remaining is_time_valid_at instances 2020-10-13 08:11:11 +10:00
height.rs Block Subsidy and Founders Reward Amounts (#1051) 2020-10-13 06:54:48 +10:00
merkle.rs export proptest impls for use in downstream crates (#1092) 2020-09-23 18:52:52 -07:00
root_hash.rs Update to `RootHash` in comments 2020-09-16 12:26:25 -04:00
serialize.rs chain: rename to block::merkle::{Root, Tree}. 2020-08-17 11:46:34 -07:00
tests.rs export proptest impls for use in downstream crates (#1092) 2020-09-23 18:52:52 -07:00