mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
chore: apply some style suggestions (#7307)
This commit is contained in:
@@ -92,11 +92,11 @@ impl TransactionPool for NoopTransactionPool {
|
||||
mpsc::channel(1).1
|
||||
}
|
||||
|
||||
fn blob_transaction_sidecars_listener(&self) -> Receiver<NewBlobSidecar> {
|
||||
fn new_transactions_listener(&self) -> Receiver<NewTransactionEvent<Self::Transaction>> {
|
||||
mpsc::channel(1).1
|
||||
}
|
||||
|
||||
fn new_transactions_listener(&self) -> Receiver<NewTransactionEvent<Self::Transaction>> {
|
||||
fn blob_transaction_sidecars_listener(&self) -> Receiver<NewBlobSidecar> {
|
||||
mpsc::channel(1).1
|
||||
}
|
||||
|
||||
@@ -211,6 +211,13 @@ impl TransactionPool for NoopTransactionPool {
|
||||
None
|
||||
}
|
||||
|
||||
fn get_transactions_by_origin(
|
||||
&self,
|
||||
_origin: TransactionOrigin,
|
||||
) -> Vec<Arc<ValidPoolTransaction<Self::Transaction>>> {
|
||||
vec![]
|
||||
}
|
||||
|
||||
fn unique_senders(&self) -> HashSet<Address> {
|
||||
Default::default()
|
||||
}
|
||||
@@ -235,13 +242,6 @@ impl TransactionPool for NoopTransactionPool {
|
||||
}
|
||||
Err(BlobStoreError::MissingSidecar(tx_hashes[0]))
|
||||
}
|
||||
|
||||
fn get_transactions_by_origin(
|
||||
&self,
|
||||
_origin: TransactionOrigin,
|
||||
) -> Vec<Arc<ValidPoolTransaction<Self::Transaction>>> {
|
||||
vec![]
|
||||
}
|
||||
}
|
||||
|
||||
/// A [`TransactionValidator`] that does nothing.
|
||||
|
||||
@@ -973,7 +973,7 @@ impl proptest::arbitrary::Arbitrary for MockTransaction {
|
||||
gas_price: *gas_price,
|
||||
gas_limit: *gas_limit,
|
||||
to: *to,
|
||||
value: (*value),
|
||||
value: *value,
|
||||
input: (*input).clone(),
|
||||
size: tx.size(),
|
||||
},
|
||||
@@ -995,7 +995,7 @@ impl proptest::arbitrary::Arbitrary for MockTransaction {
|
||||
max_priority_fee_per_gas: *max_priority_fee_per_gas,
|
||||
gas_limit: *gas_limit,
|
||||
to: *to,
|
||||
value: (*value),
|
||||
value: *value,
|
||||
input: (*input).clone(),
|
||||
accesslist: (*access_list).clone(),
|
||||
size: tx.size(),
|
||||
@@ -1020,7 +1020,7 @@ impl proptest::arbitrary::Arbitrary for MockTransaction {
|
||||
max_fee_per_blob_gas: *max_fee_per_blob_gas,
|
||||
gas_limit: *gas_limit,
|
||||
to: *to,
|
||||
value: (*value),
|
||||
value: *value,
|
||||
input: (*input).clone(),
|
||||
accesslist: (*access_list).clone(),
|
||||
// only generate a sidecar if it is a 4844 tx - also for the sake of
|
||||
|
||||
Reference in New Issue
Block a user