`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:
parent
81d7d9349c
commit
afec2ee218
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue