zcash_client_sqlite: Add missing feature flags to error helper fn
This commit is contained in:
parent
3090aff87f
commit
3c1e82a0c8
|
@ -137,6 +137,7 @@ fn sqlite_client_error_to_wallet_migration_error(e: SqliteClientError) -> Wallet
|
|||
SqliteClientError::Bech32DecodeError(e) => {
|
||||
WalletMigrationError::CorruptedData(e.to_string())
|
||||
}
|
||||
#[cfg(feature = "transparent-inputs")]
|
||||
SqliteClientError::HdwalletError(e) => WalletMigrationError::CorruptedData(e.to_string()),
|
||||
SqliteClientError::TransparentAddress(e) => {
|
||||
WalletMigrationError::CorruptedData(e.to_string())
|
||||
|
@ -158,10 +159,13 @@ fn sqlite_client_error_to_wallet_migration_error(e: SqliteClientError) -> Wallet
|
|||
| SqliteClientError::KeyDerivationError(_)
|
||||
| SqliteClientError::AccountIdDiscontinuity
|
||||
| SqliteClientError::AccountIdOutOfRange
|
||||
| SqliteClientError::AddressNotRecognized(_)
|
||||
| SqliteClientError::CacheMiss(_) => {
|
||||
unreachable!("we only call WalletRead methods; mutations can't occur")
|
||||
}
|
||||
#[cfg(feature = "transparent-inputs")]
|
||||
SqliteClientError::AddressNotRecognized(_) => {
|
||||
unreachable!("we only call WalletRead methods; mutations can't occur")
|
||||
}
|
||||
SqliteClientError::AccountUnknown => {
|
||||
unreachable!("all accounts are known in migration context")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue