-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
a91006a
commit 0723ac5
Showing
1 changed file
with
54 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters