zebra/zebra-state/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
..
service change(consensus): Refactor production code for network consensus rules to `Network` methods (#8340) 2024-03-12 21:41:44 +00:00
tests change(state): Allow opening the database in a read-only mode (#8079) 2023-12-13 21:54:00 +00:00
arbitrary.rs change(state): Refactor the structure of verified blocks (#7025) 2023-06-21 16:58:11 +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
constants.rs change(state): Expose ZebraDb methods that can create different kinds of databases (#8002) 2023-11-28 13:49:11 +00:00
error.rs Replace a chain length assertion with a NotReadyToBeCommitted error (#7072) 2023-06-27 06:50:35 +00:00
lib.rs Move history tree and value balance to typed column families (#8115) 2023-12-20 23:20:57 +00:00
request.rs build(deps): bump the prod group with 6 updates (#8125) 2024-01-02 01:26:54 +00:00
response.rs change(state): Add state requests and support code for the `z_getsubtreesbyindex` RPC (#7408) 2023-09-03 22:18:41 +00:00
service.rs build(deps): bump the prod group with 6 updates (#8125) 2024-01-02 01:26:54 +00:00
tests.rs Fix the position of coinbase tx (#7217) 2023-07-15 16:24:51 +00:00