mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-03 11:34:57 -05:00
typo: replace [BlockId] by [BlockId] (#10121)
Co-authored-by: nk_ysg <nk_ysg@163.com>
This commit is contained in:
@@ -200,12 +200,12 @@ pub trait BlockReaderIdExt: BlockReader + BlockIdReader + ReceiptProviderIdExt {
|
||||
self.sealed_header_by_id(BlockNumberOrTag::Finalized.into())
|
||||
}
|
||||
|
||||
/// Returns the block with the matching [BlockId] from the database.
|
||||
/// Returns the block with the matching [`BlockId`] from the database.
|
||||
///
|
||||
/// Returns `None` if block is not found.
|
||||
fn block_by_id(&self, id: BlockId) -> ProviderResult<Option<Block>>;
|
||||
|
||||
/// Returns the block with senders with matching [BlockId].
|
||||
/// Returns the block with senders with matching [`BlockId`].
|
||||
///
|
||||
/// Returns the block's transactions in the requested variant.
|
||||
///
|
||||
|
||||
@@ -40,10 +40,10 @@ pub trait BlockNumReader: BlockHashReader + Send + Sync {
|
||||
}
|
||||
}
|
||||
|
||||
/// Client trait for transforming [BlockId] into block numbers or hashes.
|
||||
/// Client trait for transforming [`BlockId`] into block numbers or hashes.
|
||||
///
|
||||
/// Types that implement this trait must be able to resolve all variants of [BlockNumberOrTag] to
|
||||
/// block numbers or hashes. Automatic implementations for resolving [BlockNumberOrTag] variants
|
||||
/// Types that implement this trait must be able to resolve all variants of [`BlockNumberOrTag`] to
|
||||
/// block numbers or hashes. Automatic implementations for resolving [`BlockNumberOrTag`] variants
|
||||
/// are provided if the type implements the `pending_block_num_hash`, `finalized_block_num`, and
|
||||
/// `safe_block_num` methods.
|
||||
///
|
||||
|
||||
@@ -101,7 +101,7 @@ pub trait StateProviderFactory: BlockIdReader + Send + Sync {
|
||||
/// Storage provider for latest block.
|
||||
fn latest(&self) -> ProviderResult<StateProviderBox>;
|
||||
|
||||
/// Returns a [StateProvider] indexed by the given [BlockId].
|
||||
/// Returns a [`StateProvider`] indexed by the given [`BlockId`].
|
||||
///
|
||||
/// Note: if a number or hash is provided this will __only__ look at historical(canonical)
|
||||
/// state.
|
||||
|
||||
Reference in New Issue
Block a user