Zebra/zebrad/tests/common
Arya 2f3b05f8e1
change(rpc): add submitblock RPC method (#5526)
* adds submitblock rpc method

* re-orders imports

* replaces thread::yield_now with async yield_now

* Fix doc warnings and unused variable warnings, add missing docs

* Mark work_id as optional

* Use the same ChainVerifier for downloaded and submitted blocks

* Revert unused changes & minor cleanups

* Document currently-unreachable code

* updates tests and submit_block response for AlreadyVerified error

* Update zebra-rpc/src/methods/get_block_template_rpcs.rs

Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>

* changes names from BlockVerifier to ChainVerifier and block_verifier to chain_verifier to keep it consistent with naming in zebra-consensus

* move how to run the submit_block test example to acceptance.rs

* updates snapshot tests

* moved acceptance test to a separate file

* removes extra tower::ServiceBuilder::new(), updates docs

* updates vectors and snapshot tests, changes hex decoding error in submit_block method from server error to parse error

* hides errors module in zebra-rpc behind a feature flag and adds docs.

* Updates snapshot test, adds mod docs, moves HexData to its own mod, and removes the unrelated make_server_error refactor for now

* update submit block acceptance test mod doc

Co-authored-by: teor <teor@riseup.net>
Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-11-04 03:57:08 +00:00
..
configs rpc(config): Add a `mining` section with miner address to config (#5491) 2022-11-01 00:43:45 +00:00
get_block_template_rpcs change(rpc): add submitblock RPC method (#5526) 2022-11-04 03:57:08 +00:00
lightwalletd cleanup(clippy): Use inline format strings (#5489) 2022-10-27 13:25:18 +00:00
cached_state.rs change(state): Write non-finalized blocks to the state in a separate thread, to avoid network and RPC hangs (#5257) 2022-10-11 19:25:45 +00:00
check.rs T0. refactor(test): split zebrad acceptance tests into sub-modules (#3901) 2022-03-18 16:02:22 +00:00
config.rs refactor(config): Move configs to components (#5460) 2022-10-24 23:39:00 +00:00
failure_messages.rs fix(ci): test RPCs with zcash/lightwalletd, to fix post-NU5 failures in adityapk00/lightwalletd (#4553) 2022-06-01 07:36:59 -04:00
get_block_template_rpcs.rs change(rpc): add submitblock RPC method (#5526) 2022-11-04 03:57:08 +00:00
launch.rs cleanup(clippy): Use inline format strings (#5489) 2022-10-27 13:25:18 +00:00
lightwalletd.rs fix(test): Wait for zebrad and lightwalletd to reach the tip in tests, to improve test coverage (#5164) 2022-10-06 04:12:27 +00:00
mod.rs change(rpc): add submitblock RPC method (#5526) 2022-11-04 03:57:08 +00:00
sync.rs cleanup(clippy): Use inline format strings (#5489) 2022-10-27 13:25:18 +00:00