chore: apply some style suggestions (#7307)

This commit is contained in:
Matthias Seitz
2024-03-24 23:52:33 +01:00
committed by GitHub
parent 7e6d61a66a
commit a31202670b
39 changed files with 184 additions and 182 deletions

View File

@@ -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.

View File

@@ -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