Zebra/zebra-chain/src/serialization
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
..
tests change(mempool): Evict transactions from the mempool using the ZIP-317 conventional fee (#5703) 2022-11-24 01:27:35 +00:00
arbitrary.rs build(deps): bump chrono from 0.4.22 to 0.4.23 (#5629) 2022-11-16 16:47:45 +00:00
compact_size.rs lint(clippy): add `unwrap_in_result` lint (#4667) 2022-06-28 06:22:07 +00:00
constraint.rs 1. Create an API for a missing inventory registry, but don't register any missing inventory yet (#3255) 2022-02-06 23:05:52 +00:00
date_time.rs change(rpc): Refactor get block template RPC into stages (#5837) 2022-12-13 21:25:04 +00:00
error.rs Improve ZcashSerialize docs (#4693) 2022-06-28 04:02:07 +00:00
read_zcash.rs Refactor addr v1 serialization using a separate AddrV1 type (#3021) 2021-11-10 06:47:50 +10:00
serde_helpers.rs change(nu5): use new V5 transaction script verification API (#3799) 2022-04-19 10:14:16 +10:00
sha256d.rs cleanup(clippy): Use inline format strings (#5489) 2022-10-27 13:25:18 +00:00
tests.rs Simplify preallocate tests (#3032) 2021-11-11 07:53:21 +10:00
write_zcash.rs Refactor addr v1 serialization using a separate AddrV1 type (#3021) 2021-11-10 06:47:50 +10:00
zcash_deserialize.rs Resolve a few doc warnings about unquoted HTML tags (#5477) 2022-10-25 12:14:21 +00:00
zcash_serialize.rs change(mempool): Evict transactions from the mempool using the ZIP-317 conventional fee (#5703) 2022-11-24 01:27:35 +00:00