From 11c832602df60e5e03d279e45a94c49d5592a01d Mon Sep 17 00:00:00 2001 From: Dzejkop Date: Tue, 27 Feb 2024 19:19:18 +0100 Subject: [PATCH] Fix in code condition --- src/server/routes/transaction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/routes/transaction.rs b/src/server/routes/transaction.rs index 1932423..45e16d5 100644 --- a/src/server/routes/transaction.rs +++ b/src/server/routes/transaction.rs @@ -101,7 +101,7 @@ pub async fn send_tx( .get_relayer_pending_txs(api_token.relayer_id()) .await?; - if relayer_queued_tx_count >= relayer.max_queued_txs as usize { + if relayer_queued_tx_count > relayer.max_queued_txs as usize { return Err(ApiError::TooManyTransactions { max: relayer.max_queued_txs as usize, current: relayer_queued_tx_count,