message: Do not iterate over DB when nothing was deleted.
diff: @@ -2059,6 +2059,8 @@ fn initialize_deploy_metadata_db(
  deleted_block_hashes: &HashSet<BlockHash>,
  ) -> Result<(), LmdbExtError> {
  info!("initializing deploy metadata database");
  +
  + if !deleted_block_hashes.is_empty() {
  let mut txn = env.begin_rw_txn()?;
  let mut cursor = txn.open_rw_cursor(*deploy_metadata_db)?;
  @@ -2083,6 +2085,7 @@ fn initialize_deploy_metadata_db(
  drop(cursor);
  txn.commit()?;
  + }
  info!("deploy metadata database initialized");
  Ok(())
  