Zebra/zebrad/src
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
..
application adds start as default subcommand for zebrad (#4957) 2022-08-30 09:01:33 +00:00
bin/zebrad Consolidate standard lints into a cargo config file (#3386) 2022-01-24 16:25:06 +00:00
commands change(rpc): add submitblock RPC method (#5526) 2022-11-04 03:57:08 +00:00
components fix(build): Disable new Rust 1.65 lints and fix some test errors (#5549) 2022-11-04 02:00:56 +00:00
application.rs cleanup(clippy): Use inline format strings (#5489) 2022-10-27 13:25:18 +00:00
commands.rs adds start as default subcommand for zebrad (#4957) 2022-08-30 09:01:33 +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