chia-blockchain/chia/timelord
Arvid Norberg cecda28e84
Plot filter hard fork (#15336)
* update passed_plot_filter() to take the filter size rather than consensus constants. This allows the filter size to change by block height. make verify_and_get_quality_string() take either the height or filter size

* Add some filter_prefix_bits tests on test blocks.

* Add some filter_prefix_bits tests on simulated farmer and harvester.

* Cache filter prefix bits by challenge chain signage point hash and use that for the the lookups. This allows us to perform plot filter validation.

* Add more cases to verify_and_get_quality_string() unit tests.

* Add some tests for Farmer's respond_signatures.

* Apply Kevin's suggestion to simplify the check for passing plot filter.

* Apply Kevin's suggestions to simplify some test checks and fix a couple typos.

* Apply Kevin's suggestion to send peak height instead of filter prefix bits as part of NewSignagePoint.

* Remove no longer needed filter prefix bit related logic and make height non optional in verify_and_get_quality_string().

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2023-07-12 10:26:23 -05:00
..
__init__.py git mv src chia 2021-04-04 21:41:39 -07:00
iters_from_block.py Plot filter hard fork (#15336) 2023-07-12 10:26:23 -05:00
timelord_api.py Plot filter hard fork (#15336) 2023-07-12 10:26:23 -05:00
timelord_launcher.py util: Async DNS lookups (#14999) 2023-04-28 13:37:28 -05:00
timelord_state.py Plot filter hard fork (#15336) 2023-07-12 10:26:23 -05:00
timelord.py Plot filter hard fork (#15336) 2023-07-12 10:26:23 -05:00
types.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00