fix db startup (#4298)

This commit is contained in:
realbigsean 2023-05-16 09:43:26 -04:00 committed by GitHub
parent c4b2f1c8ac
commit 9b55d74c1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -260,8 +260,7 @@ impl<E: EthSpec> HotColdDB<E, LevelDB<E>, LevelDB<E>> {
db.blobs_db = Some(LevelDB::open(path.as_path())?);
}
}
let blob_info = blob_info.unwrap_or_else(|| db.get_blob_info());
db.compare_and_set_blob_info_with_write(blob_info, new_blob_info)?;
db.compare_and_set_blob_info_with_write(<_>::default(), new_blob_info)?;
info!(
db.log,
"Blobs DB initialized";