zebra/zebra-consensus
teor 8390e4e0cd
refactor(state): Simplify difficulty and median-time-past state and mempool requests (#6031)
* Clarify function docs, rename variables, and fix log typos

* Add a ReadState best chain clone method, but don't use it yet

* Use the new calculate_median_time_past() function in existing code

* Skip a state request if the lock time is a height

* Remove dummy arguments and extra blocks from median-time-past calculation

* Update tests to remove requests that are no longer sent

* Simplify getting the best chain

Co-authored-by: Arya <aryasolhi@gmail.com>

* Clarify some function docs

Co-authored-by: Arya <aryasolhi@gmail.com>

* assigns `next_median_time_past` value from if statement

---------

Co-authored-by: Arya <aryasolhi@gmail.com>
2023-01-31 20:42:11 +00:00
..
examples cleanup(clippy): Use inline format strings (#5489) 2022-10-27 13:25:18 +00:00
src refactor(state): Simplify difficulty and median-time-past state and mempool requests (#6031) 2023-01-31 20:42:11 +00:00
Cargo.toml Release v1.0.0-rc.4 (#6045) 2023-01-31 04:53:27 +00:00