zebra/zebra-chain
teor 1915634d2b
Check for bad heights or hashes in checkpoint lists (#639)
* Add MIN and MAX for BlockHeight and LockTime
* Remove duplicate test cases
* fix a comment about the minimum lock time

The minimum LockTime::Time is 5 November 1985 00:53:20 UTC, so the first
day that only contains valid times is 6 November 1985 (in all timezones).

Similarly, the maximum LockTime::Time is 7 February 2106 06::28::15 UTC,
so the last day that only contains valid times in all time zones is
5 February 2106.

* fix: Reject checkpoint lists with bad hashes or heights

Reject the all-zeroes hash, because it is the parent hash of the genesis
block, and should never appear in a checkpoint list.

Reject checkpoint heights that are greater than the maximum block
height.
2020-07-16 15:09:22 +10:00
..
proptest-regressions Add sapling key derivation bech32 encoding roundtrip proptest 2020-04-18 04:40:31 -04:00
src Check for bad heights or hashes in checkpoint lists (#639) 2020-07-16 15:09:22 +10:00
Cargo.toml remove git dependency on equihash crate 2020-07-10 07:52:52 -04:00