`zcash_client_sqlite`: Fix refactor bug: ignore pre-Sapling chain tips

The pre-refactor code did this correctly, but the comment was moved
without fully moving the logic.
This commit is contained in:
Jack Grigg 2023-09-05 14:51:09 +00:00
parent 81d7d9349c
commit afec2ee218
1 changed files with 2 additions and 2 deletions

View File

@ -719,8 +719,8 @@ pub(crate) fn update_chain_tip<P: consensus::Parameters>(
) -> Result<(), SqliteClientError> {
// If the caller provided a chain tip that is before Sapling activation, do nothing.
let sapling_activation = match params.activation_height(NetworkUpgrade::Sapling) {
Some(h) => h,
None => return Ok(()),
Some(h) if h <= new_tip => h,
_ => return Ok(()),
};
// Read the previous max scanned height from the blocks table