Zebra/zebra-chain/src/serialization
teor 6a06cbf3ad
test(rpc): Create a script that submits block proposals to zcashd (#5944)
* Revert "Update code that we're going to delete in the next PR anyway"

This reverts commit 1fed70da9ef6f891d6465bcfc0ec4bacd9e81948.

* Initial zcash-test-block-template script without block proposal construction

* Try creating block data using jq and printf

* Move proposal_block_from_template() to zebra-rpc and remove eyre dependency

* Implement FromStr for DateTime32 and Duration32

* Basic block-template-to-proposal command without time source handling

* Move block proposal code into its own module

* Use time source in block-template-to-proposal

* Make block-template-to-proposal require the getblocktemplate-rpcs feature

* Use block-template-to-proposal in the test script zcash-rpc-block-template-to-proposal

* Apply new hex formatting to commitments and nonces in block proposal tests

* Re-add missing imports from rebase

* Re-add missing conversions from rebase

* Update to new method name after rebase

* Derive a Default impl

* Restore a comment that was accidentally deleted during the rebase

* Avoid a clippy::unwrap-in-result

* Temporarily fix the code for a disabled test

* Fix tool build with Docker caches

* Make clippy happy with the temporary fix

* Give a pass/fail status for each proposal response

* Accept zcashd block templates in block-template-to-proposal

* Fix pretty printing

* Zebra expects a longpollid, so give it a dummy value

* Add "required" fields which Zebra requires

* Use curtime as the dummy maxtime in zcashd templates

* Support large block proposals by reading proposal data from a file

* Test all valid time modes for each proposal

* Allow the user to set the time command

* Put debug logs into their own files

* Exit with an error status when any proposal is invalid

* Log the date and time to make it easier to match errors to node logs
2023-01-18 02:11:15 +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 test(rpc): Create a script that submits block proposals to zcashd (#5944) 2023-01-18 02:11:15 +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