mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: re-export header from primitives traits (#12657)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
mod sealed;
|
||||
pub use sealed::{BlockWithParent, SealedHeader};
|
||||
pub use sealed::{BlockWithParent, Header, SealedHeader};
|
||||
|
||||
mod error;
|
||||
pub use error::HeaderError;
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user