Zebra/zebra-chain/src/work
teor e9d6e975b4
change(rpc): Refactor get block template RPC into stages (#5837)
* Add some TODOs

* Move and rename height_from_signed_int()

* Move get_block_template() support functions to a submodule

* Fix incorrect P2SH comments and logs

* Split initial checks into their own functions

* Split state fetch into its own function, do some cleanup

* Move get_block_template_opts to get_block_template::parameters

* Fix and simplify test imports

* Rename block_height to next_block_height

* Rename to chain_tip_and_local_time to make it clear what it contains

* Split fetching mempool transactions out, include them in long poll id

* Refactor coinbase generation

* Split default root calculation into a separate function

* Use DateTime32 for getblocktemplate times

* Use typed difficulty fields rather than strings

* Split out a generate coinbase and roots function

* Move GetBlockTemplate construction into a method

* Document what happens to unusual difficulty values

* Clean up some TODOs

* fastmod check_address check_miner_address

* cargo fmt --all

* Fix an incorrect panic message

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-12-13 21:25:04 +00:00
..
difficulty cleanup(clippy): Use inline format strings (#5489) 2022-10-27 13:25:18 +00:00
tests fix(test): Reduce verbose test logs (#5825) 2022-12-08 23:56:01 +00:00
arbitrary.rs export proptest impls for use in downstream crates (#1092) 2020-09-23 18:52:52 -07:00
difficulty.rs change(rpc): Refactor get block template RPC into stages (#5837) 2022-12-13 21:25:04 +00:00
equihash.rs lint(clippy): add `unwrap_in_result` lint (#4667) 2022-06-28 06:22:07 +00:00
tests.rs export proptest impls for use in downstream crates (#1092) 2020-09-23 18:52:52 -07:00
u256.rs introduce `fallible_impl_from` lint with exeptions (#4609) 2022-06-20 03:57:41 +00:00