zebra/zebra-consensus/src
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
..
block change(consensus): Refactor production code for network consensus rules to `Network` methods (#8340) 2024-03-12 21:41:44 +00:00
checkpoint change(consensus): Refactor production code for network consensus rules to `Network` methods (#8340) 2024-03-12 21:41:44 +00:00
parameters change(consensus): Refactor production code for network consensus rules to `Network` methods (#8340) 2024-03-12 21:41:44 +00:00
primitives chore: allow crater runs (#8171) 2024-02-23 12:47:10 +00:00
router change(consensus): Remove Sprout and Sapling parameter download task and debug_skip_preload config (#7844) 2023-10-27 06:12:57 +00:00
transaction change(tests): Remove Matches on Network From Tests (#8295) 2024-03-05 09:12:25 -05:00
block.rs fix(concurrency): Use Arc::into_inner() to avoid potential concurrency issues, needs Rust 1.70 (#7032) 2023-06-21 20:44:53 +00:00
checkpoint.rs change(consensus): Refactor production code for network consensus rules to `Network` methods (#8340) 2024-03-12 21:41:44 +00:00
config.rs change(scan): Create a scanner storage database, but don't use it yet (#8031) 2023-11-30 12:59:15 +00:00
error.rs feat(mempool): add ZIP-317 rules to mempool (#6556) 2023-05-02 00:13:33 +00:00
lib.rs change(consensus): Refactor production code for network consensus rules to `Network` methods (#8340) 2024-03-12 21:41:44 +00:00
parameters.rs Remove duplicate and redundant consensus parameter code (#4760) 2022-07-22 16:33:26 +00:00
primitives.rs cleanup(consensus): Avoid blocking threads by awaiting proof verification results from rayon in async context (#6887) 2023-07-12 21:30:07 +00:00
router.rs change(consensus): Refactor production code for network consensus rules to `Network` methods (#8340) 2024-03-12 21:41:44 +00:00
script.rs refactor: address comments from #3415: Prepare for changes in ZIP-244 (#3446) 2022-02-01 06:24:08 +00:00
transaction.rs rename(state): Rename state verifiers and related code (#6762) 2023-06-01 12:29:03 +00:00