mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: make ensure_well_formed_payload generic over transaction (#13404)
This commit is contained in:
@ -10,9 +10,7 @@ use alloy_rlp::{Decodable, Encodable, RlpDecodable, RlpEncodable};
|
||||
use derive_more::{Deref, DerefMut};
|
||||
#[cfg(any(test, feature = "arbitrary"))]
|
||||
pub use reth_primitives_traits::test_utils::{generate_valid_header, valid_header_strategy};
|
||||
use reth_primitives_traits::{
|
||||
BlockBody as _, InMemorySize, MaybeSerdeBincodeCompat, SignedTransaction, Transaction,
|
||||
};
|
||||
use reth_primitives_traits::{BlockBody as _, InMemorySize, SignedTransaction, Transaction};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// Ethereum full block.
|
||||
@ -36,7 +34,7 @@ impl<T> Default for Block<T> {
|
||||
|
||||
impl<T> reth_primitives_traits::Block for Block<T>
|
||||
where
|
||||
T: SignedTransaction + Encodable + Decodable + MaybeSerdeBincodeCompat,
|
||||
T: SignedTransaction,
|
||||
{
|
||||
type Header = Header;
|
||||
type Body = BlockBody<T>;
|
||||
|
||||
Reference in New Issue
Block a user