Zebra/zebra-consensus/src
Alfredo Garcia 0723ac5be1
Fix poll_ready usage in ChainVerifier (#1700)
* change `poll_ready()` and `call()` of `ChainVerifier`
* add bound, move max_checkpoint_height
* add buffers to the checkpoint and block verifiers

And rename the chain verifier fields so `block` means `Arc<Block>`, and
`block_verifier` means `Buffer<BlockVerifier, ...>`.

* Fix the error types
* Use `ServiceExt::oneshot` in `ChainVerifier::call`

And:
* make the code look like the `main` branch as much as possible
* document the `poll_ready`/`call` invariant

* Use `ServiceExt::oneshot` in `chain::init`

Co-authored-by: teor <teor@riseup.net>
2021-02-09 08:13:55 +10:00
..
block Fix clippy "unnecessary Vec::push" lints 2021-01-22 11:51:30 -08:00
chain state: don't pre-buffer the service 2020-10-26 12:05:35 -07:00
checkpoint Fix clippy "unnecessary Ok" lints 2021-01-22 11:51:30 -08:00
parameters Refactor block target spacing into NetworkUpgrade methods 2020-11-12 12:30:54 +10:00
primitives Implement Async Batch verification API for groth16 2021-02-05 14:52:48 -05:00
transaction consensus: remove incorrect check 2020-11-21 14:09:15 -05:00
block.rs consensus: check Merkle root immediately after difficulty 2020-12-01 10:14:44 +10:00
chain.rs Fix poll_ready usage in ChainVerifier (#1700) 2021-02-09 08:13:55 +10:00
checkpoint.rs Actually use `VerifyCheckpointError::CommitFinalized` (#1706) 2021-02-09 07:16:36 +10:00
config.rs consensus: minimize API, clean docs 2020-10-20 11:16:22 -04:00
error.rs consensus: check for duplicate transactions in blocks 2020-12-01 10:14:44 +10:00
lib.rs Use the rustc unknown lints attribute 2021-01-19 11:02:20 -05:00
parameters.rs move genesis parameters to zebra-chain (#1151) 2020-10-12 14:08:23 -07:00
primitives.rs Implement Async Batch verification API for groth16 2021-02-05 14:52:48 -05:00
script.rs Remove an outdated comment in the script verifier (#1680) 2021-02-04 09:48:00 +10:00
transaction.rs Add a comment about a mempool request bug 2021-02-05 16:40:34 -05:00