chore(txpool): rename the function of tx_by_sender_and_nonce (#10473)

Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
Delweng
2024-08-24 16:05:06 +08:00
committed by GitHub
parent 8df9efd6ca
commit 3d2de47810
3 changed files with 4 additions and 4 deletions

View File

@@ -485,7 +485,7 @@ where
self.pool.get_transactions_by_sender(sender)
}
fn get_transactions_by_sender_and_nonce(
fn get_transaction_by_sender_and_nonce(
&self,
sender: Address,
nonce: u64,

View File

@@ -203,7 +203,7 @@ impl TransactionPool for NoopTransactionPool {
vec![]
}
fn get_transactions_by_sender_and_nonce(
fn get_transaction_by_sender_and_nonce(
&self,
_sender: Address,
_nonce: u64,

View File

@@ -331,8 +331,8 @@ pub trait TransactionPool: Send + Sync + Clone {
sender: Address,
) -> Vec<Arc<ValidPoolTransaction<Self::Transaction>>>;
/// Returns a transaction sent by a given user with a given nonce
fn get_transactions_by_sender_and_nonce(
/// Returns a transaction sent by a given user and a nonce
fn get_transaction_by_sender_and_nonce(
&self,
sender: Address,
nonce: u64,