chore: re-export header from primitives traits (#12657)

This commit is contained in:
Matthias Seitz
2024-11-19 14:46:31 +01:00
committed by GitHub
parent 03992a53ec
commit 6615fd2efc
4 changed files with 8 additions and 9 deletions

View File

@ -1,5 +1,5 @@
mod sealed;
pub use sealed::{BlockWithParent, SealedHeader};
pub use sealed::{BlockWithParent, Header, SealedHeader};
mod error;
pub use error::HeaderError;

View File

@ -1,16 +1,15 @@
use core::mem;
use alloy_consensus::{Header, Sealed};
use crate::InMemorySize;
pub use alloy_consensus::Header;
use alloy_consensus::Sealed;
use alloy_eips::BlockNumHash;
use alloy_primitives::{keccak256, BlockHash, Sealable, B256};
use alloy_rlp::{Decodable, Encodable};
use bytes::BufMut;
use core::mem;
use derive_more::{AsRef, Deref};
use reth_codecs::add_arbitrary_tests;
use serde::{Deserialize, Serialize};
use crate::InMemorySize;
/// A helper struct to store the block number/hash and its parent hash.
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub struct BlockWithParent {

View File

@ -60,7 +60,7 @@ pub use tx_type::{FullTxType, TxType};
pub mod header;
#[cfg(any(test, feature = "arbitrary", feature = "test-utils"))]
pub use header::test_utils;
pub use header::{BlockWithParent, HeaderError, SealedHeader};
pub use header::{BlockWithParent, Header, HeaderError, SealedHeader};
/// Bincode-compatible serde implementations for common abstracted types in Reth.
///

View File

@ -39,8 +39,8 @@ pub use receipt::{
gas_spent_by_transactions, Receipt, ReceiptWithBloom, ReceiptWithBloomRef, Receipts,
};
pub use reth_primitives_traits::{
logs_bloom, Account, Bytecode, GotExpected, GotExpectedBoxed, HeaderError, Log, LogData,
NodePrimitives, SealedHeader, StorageEntry,
logs_bloom, Account, Bytecode, GotExpected, GotExpectedBoxed, Header, HeaderError, Log,
LogData, NodePrimitives, SealedHeader, StorageEntry,
};
pub use static_file::StaticFileSegment;