diff --git a/signer/src/error.rs b/signer/src/error.rs index 714b8087..832c0879 100644 --- a/signer/src/error.rs +++ b/signer/src/error.rs @@ -21,16 +21,6 @@ pub enum Error { #[error("Transaction is missing from mempool")] BitcoinTxMissing(bitcoin::Txid), - /// Returned when we could not decode the hex into a - /// bitcoin::Transaction. - #[error("failed to decode the provided hex into a transaction. txid: {1}. {0}")] - DecodeTx(#[source] bitcoin::consensus::encode::Error, bitcoin::Txid), - - /// Could not deserialize the "blockchain.transaction.get" response - /// into a GetTxResponse. - #[error("failed to deserialize the blockchain.transaction.get response. txid: {1}. {0}")] - DeserializeGetTransaction(#[source] serde_json::Error, bitcoin::Txid), - /// Received an error in call to estimatesmartfee RPC call #[error("failed to get fee estimate from bitcoin-core for target {1}. {0}")] EstimateSmartFee(#[source] bitcoincore_rpc::Error, u16), @@ -68,10 +58,6 @@ pub enum Error { #[error("tokio i/o error: {0}")] TokioIo(#[from] tokio::io::Error), - /// The error used in the [`Encode`] and [`Decode`] trait. - #[error("error serializing type: {0}")] - Bincode(#[source] bincode::Error), - /// Error when breaking out the ZeroMQ message into three parts. #[error("bitcoin messages should have a three part layout, received {0} parts")] BitcoinCoreZmqMessageLayout(usize), @@ -251,10 +237,6 @@ pub enum Error { #[error("failed to read migration script: {0}")] ReadSqlMigration(Cow<'static, str>), - /// Could not retrieve the current database name. - #[error("could not retrieve the current database name")] - CurrentDatabaseName, - /// An error when attempting to generically decode bytes using the /// trait implementation. #[error("got an error wen attempting to call StacksMessageCodec::consensus_deserialize {0}")] diff --git a/signer/src/util.rs b/signer/src/util.rs index 9e57155b..ff72d762 100644 --- a/signer/src/util.rs +++ b/signer/src/util.rs @@ -145,7 +145,7 @@ mod tests { } else { // Just picked a random error here (which isn't // a AllFailoverClientsFailed) - Err(Error::CurrentDatabaseName) + Err(Error::Encryption) } } }