mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: remove default bound for txs (#12834)
This commit is contained in:
@ -42,16 +42,7 @@ pub trait NodePrimitives:
|
||||
+ MaybeSerde
|
||||
+ 'static;
|
||||
/// Signed version of the transaction type.
|
||||
type SignedTx: Send
|
||||
+ Sync
|
||||
+ Unpin
|
||||
+ Clone
|
||||
+ Default
|
||||
+ fmt::Debug
|
||||
+ PartialEq
|
||||
+ Eq
|
||||
+ MaybeSerde
|
||||
+ 'static;
|
||||
type SignedTx: Send + Sync + Unpin + Clone + fmt::Debug + PartialEq + Eq + MaybeSerde + 'static;
|
||||
/// Transaction envelope type ID.
|
||||
type TxType: Send + Sync + Unpin + Clone + Default + fmt::Debug + PartialEq + Eq + 'static;
|
||||
/// A receipt.
|
||||
|
||||
@ -18,7 +18,6 @@ pub trait Transaction:
|
||||
+ Sync
|
||||
+ Unpin
|
||||
+ Clone
|
||||
+ Default
|
||||
+ fmt::Debug
|
||||
+ Eq
|
||||
+ PartialEq
|
||||
@ -35,7 +34,6 @@ impl<T> Transaction for T where
|
||||
+ Sync
|
||||
+ Unpin
|
||||
+ Clone
|
||||
+ Default
|
||||
+ fmt::Debug
|
||||
+ Eq
|
||||
+ PartialEq
|
||||
|
||||
@ -18,7 +18,6 @@ pub trait SignedTransaction:
|
||||
+ Sync
|
||||
+ Unpin
|
||||
+ Clone
|
||||
+ Default
|
||||
+ fmt::Debug
|
||||
+ PartialEq
|
||||
+ Eq
|
||||
|
||||
@ -11,7 +11,7 @@ use crate::{
|
||||
use alloy_consensus::{
|
||||
constants::EIP4844_TX_TYPE_ID,
|
||||
transaction::{TxEip1559, TxEip2930, TxEip4844, TxLegacy},
|
||||
SignableTransaction, Signed, TxEip4844WithSidecar,
|
||||
Signed, TxEip4844WithSidecar,
|
||||
};
|
||||
use alloy_eips::{
|
||||
eip2718::{Decodable2718, Eip2718Result, Encodable2718},
|
||||
@ -226,12 +226,6 @@ impl PooledTransactionsElement {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for PooledTransactionsElement {
|
||||
fn default() -> Self {
|
||||
Self::Legacy(TxLegacy::default().into_signed(Signature::test_signature()))
|
||||
}
|
||||
}
|
||||
|
||||
impl Hash for PooledTransactionsElement {
|
||||
fn hash<H: Hasher>(&self, state: &mut H) {
|
||||
self.trie_hash().hash(state);
|
||||
|
||||
Reference in New Issue
Block a user