mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: bump alloy (#12215)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
use super::Header;
|
||||
use alloy_consensus::Sealed;
|
||||
use alloy_eips::BlockNumHash;
|
||||
use alloy_primitives::{keccak256, BlockHash, Sealable};
|
||||
#[cfg(any(test, feature = "test-utils"))]
|
||||
@ -132,6 +133,12 @@ impl SealedHeader {
|
||||
}
|
||||
}
|
||||
|
||||
impl<H> From<SealedHeader<H>> for Sealed<H> {
|
||||
fn from(value: SealedHeader<H>) -> Self {
|
||||
Self::new_unchecked(value.header, value.hash)
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(test, feature = "arbitrary"))]
|
||||
impl<'a> arbitrary::Arbitrary<'a> for SealedHeader {
|
||||
fn arbitrary(u: &mut arbitrary::Unstructured<'a>) -> arbitrary::Result<Self> {
|
||||
|
||||
@ -6,7 +6,7 @@ use reth_codecs::Compact;
|
||||
|
||||
use alloy_consensus::Transaction;
|
||||
use alloy_eips::eip2718::{Decodable2718, Encodable2718};
|
||||
use alloy_primitives::{keccak256, Address, Signature, TxHash, B256};
|
||||
use alloy_primitives::{keccak256, Address, PrimitiveSignature as Signature, TxHash, B256};
|
||||
use revm_primitives::TxEnv;
|
||||
|
||||
/// Helper trait that unifies all behaviour required by block to support full node operations.
|
||||
|
||||
Reference in New Issue
Block a user