refactor: split async/sync work in stages (#4636)

Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
This commit is contained in:
Bjerg
2023-11-17 22:12:12 +01:00
committed by GitHub
parent 7f9ce6f7c0
commit db5d01e328
39 changed files with 775 additions and 681 deletions

View File

@@ -20,6 +20,9 @@ pub enum ProviderError {
/// Error when recovering the sender for a transaction
#[error("failed to recover sender for transaction")]
SenderRecoveryError,
/// Inconsistent header gap.
#[error("inconsistent header gap in the database")]
InconsistentHeaderGap,
/// The header number was not found for the given block hash.
#[error("block hash {0} does not exist in Headers table")]
BlockHashNotFound(BlockHash),