From 46a3d3c253c7cf1fef15adcf6b419952c4d8d6e3 Mon Sep 17 00:00:00 2001 From: Lijun Wang <83639177+lijunwangs@users.noreply.github.com> Date: Thu, 5 Jan 2023 15:14:55 -0800 Subject: [PATCH] Removed assert on write_version ordering (#29530) Removed assert on write_version ordering as snapshot created by earlier version is not honoring that. --- runtime/src/accounts_db/geyser_plugin_utils.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/runtime/src/accounts_db/geyser_plugin_utils.rs b/runtime/src/accounts_db/geyser_plugin_utils.rs index 866a5628408d51..a5efd030535b27 100644 --- a/runtime/src/accounts_db/geyser_plugin_utils.rs +++ b/runtime/src/accounts_db/geyser_plugin_utils.rs @@ -89,16 +89,11 @@ impl AccountsDb { let slot_stores = slot_stores.read().unwrap(); let mut accounts_to_stream: HashMap = HashMap::default(); let mut measure_filter = Measure::start("accountsdb-plugin-filtering-accounts"); - let mut previous_write_version = None; for (_, storage_entry) in slot_stores.iter() { let accounts = storage_entry.accounts.account_iter(); let mut account_len = 0; accounts.for_each(|account| { account_len += 1; - if let Some(previous_write_version) = previous_write_version { - assert!(previous_write_version < account.meta.write_version_obsolete); - } - previous_write_version = Some(account.meta.write_version_obsolete); if notified_accounts.contains(&account.meta.pubkey) { notify_stats.skipped_accounts += 1; return;