diff --git a/binaries/cuprated/src/rpc/request/address_book.rs b/binaries/cuprated/src/rpc/request/address_book.rs index f129dbe..6760a6c 100644 --- a/binaries/cuprated/src/rpc/request/address_book.rs +++ b/binaries/cuprated/src/rpc/request/address_book.rs @@ -8,7 +8,7 @@ use tower::ServiceExt; use cuprate_helper::cast::usize_to_u64; use cuprate_p2p_core::{ services::{AddressBookRequest, AddressBookResponse}, - types::BanState, + types::{BanState, ConnectionId}, AddressBook, NetworkZone, }; use cuprate_pruning::PruningSeed; diff --git a/binaries/cuprated/src/rpc/request/txpool.rs b/binaries/cuprated/src/rpc/request/txpool.rs index 3ef456c..eadbb23 100644 --- a/binaries/cuprated/src/rpc/request/txpool.rs +++ b/binaries/cuprated/src/rpc/request/txpool.rs @@ -11,7 +11,7 @@ use cuprate_txpool::{ interface::{TxpoolReadRequest, TxpoolReadResponse}, TxpoolReadHandle, }, - BlockTemplateTxEntry, TxEntry, + TxEntry, }; // FIXME: use `anyhow::Error` over `tower::BoxError` in txpool. @@ -32,24 +32,6 @@ pub(crate) async fn backlog(txpool_read: &mut TxpoolReadHandle) -> Result Result, Error> { - let TxpoolReadResponse::BlockTemplateBacklog(tx_entries) = txpool_read - .ready() - .await - .map_err(|e| anyhow!(e))? - .call(TxpoolReadRequest::BlockTemplateBacklog) - .await - .map_err(|e| anyhow!(e))? - else { - unreachable!(); - }; - - Ok(tx_entries) -} - /// [`TxpoolReadRequest::Size`] pub(crate) async fn size( txpool_read: &mut TxpoolReadHandle,