From 48434bb271c329c9767382d948f5c525ec017e15 Mon Sep 17 00:00:00 2001 From: Kris Nuttycombe Date: Fri, 16 Jun 2023 15:07:53 -0600 Subject: [PATCH] zcash_client_sqlite: Fix SQL identation errors. --- zcash_client_sqlite/src/wallet.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/zcash_client_sqlite/src/wallet.rs b/zcash_client_sqlite/src/wallet.rs index 3f5515e2d..a05597134 100644 --- a/zcash_client_sqlite/src/wallet.rs +++ b/zcash_client_sqlite/src/wallet.rs @@ -626,13 +626,13 @@ pub(crate) fn truncate_to_height( // Rewind received notes conn.execute( "DELETE FROM sapling_received_notes - WHERE id_note IN ( - SELECT rn.id_note - FROM sapling_received_notes rn - LEFT OUTER JOIN transactions tx - ON tx.id_tx = rn.tx - WHERE tx.block IS NOT NULL AND tx.block > ? - );", + WHERE id_note IN ( + SELECT rn.id_note + FROM sapling_received_notes rn + LEFT OUTER JOIN transactions tx + ON tx.id_tx = rn.tx + WHERE tx.block IS NOT NULL AND tx.block > ? + );", [u32::from(block_height)], )?; @@ -969,11 +969,11 @@ pub(crate) fn update_expired_notes( height: BlockHeight, ) -> Result<(), SqliteClientError> { let mut stmt_update_expired = conn.prepare_cached( - "UPDATE sapling_received_notes SET spent = NULL WHERE EXISTS ( - SELECT id_tx FROM transactions - WHERE id_tx = sapling_received_notes.spent AND block IS NULL AND expiry_height < ? - )", - )?; + "UPDATE sapling_received_notes SET spent = NULL WHERE EXISTS ( + SELECT id_tx FROM transactions + WHERE id_tx = sapling_received_notes.spent AND block IS NULL AND expiry_height < ? + )", + )?; stmt_update_expired.execute([u32::from(height)])?; Ok(()) }