diff --git a/binaries/cuprated/src/rpc/handlers/shared.rs b/binaries/cuprated/src/rpc/handlers/shared.rs index 81c6f72..7181cf6 100644 --- a/binaries/cuprated/src/rpc/handlers/shared.rs +++ b/binaries/cuprated/src/rpc/handlers/shared.rs @@ -87,15 +87,7 @@ pub(super) async fn get_transaction_pool_hashes( mut state: CupratedRpcHandler, ) -> Result, Error> { let include_sensitive_txs = !state.is_restricted(); - - // FIXME: this request is a bit overkill, we only need the hashes. - // We could create a separate request for this. - Ok(txpool::pool(&mut state.txpool_read, include_sensitive_txs) - .await? - .0 - .into_iter() - .map(|tx| tx.id_hash.0) - .collect()) + txpool::all_hashes(&mut state.txpool_read, include_sensitive_txs).await } ///