Zebra/zebra-chain/src
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
..
amount build(deps): bump insta from 1.15.0 to 1.17.1 (#4884) 2022-08-04 15:44:44 +00:00
block fix(diagnostics): Hex-encode debug format of commitments, nonces, and nullifiers (#5960) 2023-01-17 13:57:22 +00:00
chain_sync_status fix(test): Move test-only code to test-only modules (#5777) 2022-12-08 01:06:11 +00:00
chain_tip change(rpc): Return from long polling immediately when the chain tip changes (#5862) 2022-12-15 15:33:00 +00:00
fmt cleanup(clippy): Use inline format strings (#5489) 2022-10-27 13:25:18 +00:00
history_tree refactor(anchorSapling): Change type to force consensus rule validation (#3544) 2022-02-17 03:20:22 +00:00
orchard fix(clippy): Fix new lints in nightly clippy (#5959) 2023-01-18 00:27:42 +00:00
parallel 1. fix(perf): Run CPU-intensive state updates in parallel rayon threads (#4802) 2022-07-22 12:19:11 -04:00
parameters fix(clippy): Fix new lints in nightly clippy (#5959) 2023-01-18 00:27:42 +00:00
primitives fix(diagnostics): Hex-encode debug format of commitments, nonces, and nullifiers (#5960) 2023-01-17 13:57:22 +00:00
sapling fix(diagnostics): Hex-encode debug format of commitments, nonces, and nullifiers (#5960) 2023-01-17 13:57:22 +00:00
serialization test(rpc): Create a script that submits block proposals to zcashd (#5944) 2023-01-18 02:11:15 +00:00
sprout fix(diagnostics): Hex-encode debug format of commitments, nonces, and nullifiers (#5960) 2023-01-17 13:57:22 +00:00
transaction fix(diagnostics): Hex-encode debug format of commitments, nonces, and nullifiers (#5960) 2023-01-17 13:57:22 +00:00
transparent change(rpc): Match `zcashd`'s block template exactly (#5867) 2022-12-19 18:52:43 +00:00
value_balance build(deps): bump insta from 1.15.0 to 1.17.1 (#4884) 2022-08-04 15:44:44 +00:00
work fix(diagnostics): Hex-encode debug format of commitments, nonces, and nullifiers (#5960) 2023-01-17 13:57:22 +00:00
amount.rs change(ci): add acceptance test for getblocktemplate RPC in CI, and fix RPC bugs (#5761) 2022-12-01 19:39:01 +00:00
block.rs fix(diagnostics): Hex-encode debug format of commitments, nonces, and nullifiers (#5960) 2023-01-17 13:57:22 +00:00
chain_sync_status.rs fix(test): Move test-only code to test-only modules (#5777) 2022-12-08 01:06:11 +00:00
chain_tip.rs change(rpc): Return from long polling immediately when the chain tip changes (#5862) 2022-12-15 15:33:00 +00:00
diagnostic.rs fix(ci): improve test output and test reliability (#5014) 2022-09-02 08:54:40 +00:00
fmt.rs fix(diagnostics): Hex-encode debug format of commitments, nonces, and nullifiers (#5960) 2023-01-17 13:57:22 +00:00
history_tree.rs cleanup(clippy): Use inline format strings (#5489) 2022-10-27 13:25:18 +00:00
lib.rs change(rpc): Refactor get block template RPC into stages (#5837) 2022-12-13 21:25:04 +00:00
orchard.rs cleanup(cryptography): Remove unused shielded key and address code (#5476) 2022-10-29 20:59:55 +00:00
parallel.rs 1. fix(perf): Run CPU-intensive state updates in parallel rayon threads (#4802) 2022-07-22 12:19:11 -04:00
parameters.rs Cleanup a few arbitrary impls (#2222) 2021-05-28 09:49:28 -03:00
primitives.rs ZIP 212: validate Sapling and Orchard output of coinbase transactions (#3029) 2021-11-11 22:18:37 +00:00
sapling.rs cleanup(cryptography): Remove unused shielded key and address code (#5476) 2022-10-29 20:59:55 +00:00
serialization.rs Refactor addr v1 serialization using a separate AddrV1 type (#3021) 2021-11-10 06:47:50 +10:00
shutdown.rs Fix shutdown panics (#1637) 2021-02-03 19:03:28 +10:00
sprout.rs cleanup(cryptography): Remove unused shielded key and address code (#5476) 2022-10-29 20:59:55 +00:00
transaction.rs change(mempool): Re-verify mempool transactions after a chain fork, rather than re-downloading them all (#5841) 2022-12-12 23:19:45 +00:00
transparent.rs change(rpc): support transparent p2pkh miner addresses (#5827) 2022-12-09 05:17:55 +00:00
value_balance.rs 5. change(rpc): Implement coinbase conversion to RPC `TransactionTemplate` type (#5554) 2022-11-07 17:37:50 +00:00
work.rs Replace primitives_types with uint (#2350) 2021-06-18 15:35:05 -03:00