Zebra/zebrad/src
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
..
application fix(zebrad) print usage info for --help flag (#5634) 2022-11-18 14:24:10 +00:00
bin/zebrad Consolidate standard lints into a cargo config file (#3386) 2022-01-24 16:25:06 +00:00
commands fix(clippy): Put Rust format variables inline (#5783) 2022-12-08 01:05:57 +00:00
components change(rpc): Refactor get block template RPC into stages (#5837) 2022-12-13 21:25:04 +00:00
application.rs fix(clippy): Put Rust format variables inline (#5783) 2022-12-08 01:05:57 +00:00
commands.rs fix(zebrad) print usage info for --help flag (#5634) 2022-11-18 14:24:10 +00:00
components.rs Re-order Zebra startup, so slow services are launched last (#3091) 2021-11-23 17:42:44 +00:00
config.rs rpc(config): Add a `mining` section with miner address to config (#5491) 2022-11-01 00:43:45 +00:00
lib.rs 2. change(rpc): Add some transaction fields to the `getblocktemplate` RPC (#5496) 2022-11-03 03:25:01 +00:00
prelude.rs Fix a deadlock in TokioComponent. 2020-01-15 12:06:31 -08:00
sentry.rs Standardise clippy lints and require docs (#2238) 2021-06-04 08:48:40 +10:00