From 2d8a7dc4af4f284efb0a8d9838b849bb297175a1 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Mon, 18 Mar 2024 22:00:56 +0000 Subject: [PATCH] zcash_client_sqlite: Remove `SqliteClientError::InvalidNoteId` --- zcash_client_sqlite/CHANGELOG.md | 1 + zcash_client_sqlite/src/error.rs | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/zcash_client_sqlite/CHANGELOG.md b/zcash_client_sqlite/CHANGELOG.md index db7bc856c..1fadd340f 100644 --- a/zcash_client_sqlite/CHANGELOG.md +++ b/zcash_client_sqlite/CHANGELOG.md @@ -32,6 +32,7 @@ and this library adheres to Rust's notion of - Added `UnknownZip32Derivation` - Added `BadAccountData` - Removed `DiversifierIndexOutOfRange` + - Removed `InvalidNoteId` - `zcash_client_sqlite::wallet`: - `init::WalletMigrationError` has added variants: - `WalletMigrationError::AddressGeneration` diff --git a/zcash_client_sqlite/src/error.rs b/zcash_client_sqlite/src/error.rs index 1271e9ca7..6796c4142 100644 --- a/zcash_client_sqlite/src/error.rs +++ b/zcash_client_sqlite/src/error.rs @@ -30,10 +30,6 @@ pub enum SqliteClientError { /// The rcm value for a note cannot be decoded to a valid JubJub point. InvalidNote, - /// The note id associated with a witness being stored corresponds to a - /// sent note, not a received note. - InvalidNoteId, - /// Illegal attempt to reinitialize an already-initialized wallet database. TableNotEmpty, @@ -138,8 +134,6 @@ impl fmt::Display for SqliteClientError { } SqliteClientError::Protobuf(e) => write!(f, "Failed to parse protobuf-encoded record: {}", e), SqliteClientError::InvalidNote => write!(f, "Invalid note"), - SqliteClientError::InvalidNoteId => - write!(f, "The note ID associated with an inserted witness must correspond to a received note."), SqliteClientError::RequestedRewindInvalid(h, r) => write!(f, "A rewind must be either of less than {} blocks, or at least back to block {} for your wallet; the requested height was {}.", PRUNING_DEPTH, h, r), SqliteClientError::Bech32DecodeError(e) => write!(f, "{}", e),