zebra/zebra-consensus/src/checkpoint
Za Wilcox 3bef54b764
change(consensus): Refactor production code for network consensus rules to `Network` methods (#8340)
* begin refactor suggested as "step 2": https://github.com/ZcashFoundation/zebra/issues/7968#issue-2003245309
Squashed from multiple commits to enable partial rebase

* break out more little traits

* add activation implementation leveraging From<Network> for lrz::cons::

* for transfer of ownership I cannot return a type that's owned by the method

* hrp_sapling_extended_full_viewing_key

* complete implementation of interface of Parameters on Network reuse Parameters on zcash Network where possible

* move doc-comments to trait declarations (from impls)

* Simplify/complete Parameters impl for Network

* Add checkpoint_list method, move documentation, etc

* move last match network to inside network method

* add back comment

* use zcash_address for parameter types in zebra-chain

* use inherent methods instead of big parameters passthrough

* revert to implementation of From on zcash_primitives::..::Network vs &zcash_prim...

* move match

* add test to block maximum time rule

* update changelog

* finish porting target_difficutly_limit

* remove obscelete code comment

* revert non-functional change

* finish migrating target_difficulty_limit, checkpoint_list

* update changelog

---------

Co-authored-by: Hazel OHearn <gygaxis@zingolabs.org>
2024-03-12 21:41:44 +00:00
..
list change(consensus): Refactor production code for network consensus rules to `Network` methods (#8340) 2024-03-12 21:41:44 +00:00
README.md change(ci): Generate testnet checkpoints in CI (#6581) 2023-05-03 23:14:22 +00:00
list.rs change(consensus): Refactor production code for network consensus rules to `Network` methods (#8340) 2024-03-12 21:41:44 +00:00
main-checkpoints.txt chore: Update Checkpoints (#8309) 2024-02-22 12:19:32 +00:00
test-checkpoints.txt chore: Update Checkpoints (#8309) 2024-02-22 12:19:32 +00:00
tests.rs change(tests): Remove Matches on Network From Tests (#8295) 2024-03-05 09:12:25 -05:00
types.rs feat(ui): Add a terminal-based progress bar to Zebra (#6235) 2023-04-13 08:42:17 +00:00

README.md

Zebra checkpoints

Zebra validates settled network upgrades using a list of Mainnet and Testnet block hash checkpoints:

Using these checkpoints increases Zebra's security against some attacks.

Update checkpoints

Checkpoint lists are distributed with Zebra, maintainers should update them about every few months to get newer hashes. Here are the exact commands for updating the lists.