zebra/zebra-chain/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
..
amount build(deps): bump insta from 1.15.0 to 1.17.1 (#4884) 2022-08-04 15:44:44 +00:00
block change(tests): Remove Matches on Network From Tests (#8295) 2024-03-05 09:12:25 -05:00
chain_sync_status fix(test): Move test-only code to test-only modules (#5777) 2022-12-08 01:06:11 +00:00
chain_tip change(chain): Refactor the handling of height differences (#6330) 2023-03-29 23:06:31 +00:00
diagnostic fix(net): Fix potential network hangs, and reduce code complexity (#7859) 2023-11-16 19:53:24 +00:00
fmt cleanup(clippy): Use inline format strings (#5489) 2022-10-27 13:25:18 +00:00
history_tree change(tests): Remove Matches on Network From Tests (#8295) 2024-03-05 09:12:25 -05:00
orchard rustc lint: Remove or ignore some dead code (#8148) 2024-01-12 00:46:46 +00:00
parallel change(state): Make the types for finalized blocks consistent (#7923) 2023-11-08 22:06:16 +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 change(consensus): Refactor production code for network consensus rules to `Network` methods (#8340) 2024-03-12 21:41:44 +00:00
sapling change(tests): Remove Matches on Network From Tests (#8295) 2024-03-05 09:12:25 -05:00
serialization test(scan): Add typed database format snapshots to the scanner (#8083) 2023-12-12 22:34:59 +00:00
sprout change(tests): Remove Matches on Network From Tests (#8295) 2024-03-05 09:12:25 -05:00
tests change(tests): Remove Matches on Network From Tests (#8295) 2024-03-05 09:12:25 -05:00
transaction change(tests): Remove Matches on Network From Tests (#8295) 2024-03-05 09:12:25 -05:00
transparent change(consensus): Refactor production code for network consensus rules to `Network` methods (#8340) 2024-03-12 21:41:44 +00:00
value_balance cleanup(rust): Fix new nightly clippy warnings (#7135) 2023-07-05 07:11:27 +00:00
work change(consensus): Refactor production code for network consensus rules to `Network` methods (#8340) 2024-03-12 21:41:44 +00:00
amount.rs change(scan): Refactor scanning tests (#8047) 2023-12-06 01:57:01 +00:00
block.rs Fix new nightly clippy and rustc lints (#7860) 2023-10-27 19:35:57 +00:00
chain_sync_status.rs fix(test): Move test-only code to test-only modules (#5777) 2022-12-08 01:06:11 +00:00
chain_tip.rs change(chain): Refactor the handling of height differences (#6330) 2023-03-29 23:06:31 +00:00
diagnostic.rs fix(panic): Stop panicking on async task cancellation on shutdown in network and state futures (#7219) 2023-07-18 04:53:26 +00:00
error.rs fix(errors): Handle randomness generation and invalid random values as errors in cryptographic code (#6385) 2023-04-20 17:49:21 +00:00
fmt.rs change(scan): Refactor scanning tests (#8047) 2023-12-06 01:57:01 +00:00
history_tree.rs Move history tree and value balance to typed column families (#8115) 2023-12-20 23:20:57 +00:00
lib.rs change(tests): Remove Matches on Network From Tests (#8295) 2024-03-05 09:12:25 -05:00
orchard.rs cleanup(cryptography): Remove unused shielded key and address code (#5476) 2022-10-29 20:59:55 +00:00
parallel.rs 1. fix(perf): Run CPU-intensive state updates in parallel rayon threads (#4802) 2022-07-22 12:19:11 -04:00
parameters.rs Cleanup a few arbitrary impls (#2222) 2021-05-28 09:49:28 -03:00
primitives.rs add(chain): Adds `ViewingKey` type in zebra-chain (#8198) 2024-01-30 20:32:36 +00:00
sapling.rs change(scan): Refactor scanning tests (#8047) 2023-12-06 01:57:01 +00:00
serialization.rs Halborn 2023 02 20 (#6297) 2023-03-13 18:10:15 +00:00
shutdown.rs Fix shutdown panics (#1637) 2021-02-03 19:03:28 +10:00
sprout.rs cleanup(cryptography): Remove unused shielded key and address code (#5476) 2022-10-29 20:59:55 +00:00
subtree.rs change(state): Refactor the naming of note commitment subtrees (#7855) 2023-10-30 20:06:54 +00:00
tests.rs change(tests): Remove Matches on Network From Tests (#8295) 2024-03-05 09:12:25 -05:00
transaction.rs Fix new nightly clippy and rustc lints (#7860) 2023-10-27 19:35:57 +00:00
transparent.rs fix(build): add elasticsearch feature to block serialize (#6709) 2023-06-14 19:01:39 +00:00
value_balance.rs fix(state): Limit the retrieval of note commitment subtrees (#7734) 2023-10-12 20:00:43 +00:00
work.rs Replace primitives_types with uint (#2350) 2021-06-18 15:35:05 -03:00