From 76ad543ec5d7c4303e063ad0678fcad6d44783e5 Mon Sep 17 00:00:00 2001 From: Alfredo Garcia Date: Mon, 21 Jun 2021 12:01:45 -0300 Subject: [PATCH] remove assert --- zebra-state/src/service/finalized_state.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/zebra-state/src/service/finalized_state.rs b/zebra-state/src/service/finalized_state.rs index a684a720..5a310fd0 100644 --- a/zebra-state/src/service/finalized_state.rs +++ b/zebra-state/src/service/finalized_state.rs @@ -73,10 +73,6 @@ impl FinalizedState { debug_stop_at_height: config.debug_stop_at_height.map(block::Height), }; - // Make sure the database returned from the `db_config()` is always the same - // as the one returned by the `path()` method of the FinalizedState. - assert_eq!(new_state.path(), path); - if let Some(tip_height) = new_state.finalized_tip_height() { if new_state.is_at_stop_height(tip_height) { let debug_stop_at_height = new_state @@ -404,6 +400,7 @@ impl FinalizedState { } /// Returns the `Path` where the files used by this database are located. + #[allow(dead_code)] pub fn path(&self) -> &Path { self.db.path() }