From 6f7af02d4044c4faba30ffc4954d560e58ca1896 Mon Sep 17 00:00:00 2001 From: rajarshimaitra Date: Fri, 3 Dec 2021 18:11:56 +0530 Subject: [PATCH] Add ProxyTransport error into Global Error. --- src/error.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/error.rs b/src/error.rs index 15ec5713da..55d5019075 100644 --- a/src/error.rs +++ b/src/error.rs @@ -139,7 +139,9 @@ pub enum Error { Sled(sled::Error), #[cfg(feature = "rpc")] /// Rpc client error - Rpc(bitcoincore_rpc::Error), + RpcClient(bitcoincore_rpc::Error), + /// Rpc proxy error + RpcProxy(crate::blockchain::rpc_proxy::RpcProxyError), #[cfg(feature = "sqlite")] /// Rusqlite client error Rusqlite(rusqlite::Error), @@ -196,7 +198,9 @@ impl_error!(electrum_client::Error, Electrum); #[cfg(feature = "key-value-db")] impl_error!(sled::Error, Sled); #[cfg(feature = "rpc")] -impl_error!(bitcoincore_rpc::Error, Rpc); +impl_error!(bitcoincore_rpc::Error, RpcClient); +#[cfg(feature = "rpc")] +impl_error!(crate::blockchain::rpc_proxy::RpcProxyError, RpcProxy); #[cfg(feature = "sqlite")] impl_error!(rusqlite::Error, Rusqlite);