zebra/zebra-chain/proptest-regressions
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
..
block Rename old references to BlockHeaderHash and BlockHeight (#1002) 2020-09-04 15:40:48 -07:00
keys Add sapling key derivation bech32 encoding roundtrip proptest 2020-04-18 04:40:31 -04:00
transaction Rename old references to BlockHeaderHash and BlockHeight (#1002) 2020-09-04 15:40:48 -07:00
work/tests Implement Expanded to Compact Difficulty Conversion (#1196) 2020-10-30 11:36:59 +10:00
serialization.txt Add a bytes round-trip test for compactsize encoding. 2019-11-20 11:59:54 -05:00
types.txt Rename old references to BlockHeaderHash and BlockHeight (#1002) 2020-09-04 15:40:48 -07:00