feat: make ommers table generic over header (#13038)

This commit is contained in:
Arsenii Kulikov
2024-11-30 21:16:06 +04:00
committed by GitHub
parent ebd413fce2
commit 4634625181
5 changed files with 45 additions and 16 deletions

View File

@ -139,6 +139,7 @@ macro_rules! tables {
impl$(<$($generic),*>)? reth_db_api::table::Table for $name$(<$($generic),*>)?
where
$value: reth_db_api::table::Value + 'static
$($(,$generic: Send + Sync)*)?
{
const NAME: &'static str = table_names::$name;
const DUPSORT: bool = tables!(@bool $($subkey)?);
@ -314,9 +315,9 @@ tables! {
}
/// Stores the uncles/ommers of the block.
table BlockOmmers {
table BlockOmmers<H = Header> {
type Key = BlockNumber;
type Value = StoredBlockOmmers;
type Value = StoredBlockOmmers<H>;
}
/// Stores the block withdrawals.