chore: unify empty payload building (#10807)

This commit is contained in:
Matthias Seitz
2024-09-10 14:21:49 +02:00
committed by GitHub
parent 72c53b88bc
commit e4b5325875
4 changed files with 83 additions and 310 deletions

View File

@ -220,6 +220,13 @@ impl TransactionPool for NoopTransactionPool {
vec![]
}
fn get_pending_transactions_by_origin(
&self,
_origin: TransactionOrigin,
) -> Vec<Arc<ValidPoolTransaction<Self::Transaction>>> {
vec![]
}
fn unique_senders(&self) -> HashSet<Address> {
Default::default()
}
@ -251,13 +258,6 @@ impl TransactionPool for NoopTransactionPool {
) -> Result<Vec<Option<BlobAndProofV1>>, BlobStoreError> {
Ok(vec![None; versioned_hashes.len()])
}
fn get_pending_transactions_by_origin(
&self,
_origin: TransactionOrigin,
) -> Vec<Arc<ValidPoolTransaction<Self::Transaction>>> {
vec![]
}
}
/// A [`TransactionValidator`] that does nothing.