This commit is contained in:
Sina Mahmoodi 2025-04-17 14:16:00 +02:00 committed by lightclient
parent 5845427d0d
commit ff11e10ac2
No known key found for this signature in database
GPG key ID: 657913021EF45A6A

View file

@ -63,7 +63,6 @@ func New(datadir string) (*EraDatabase, error) {
if err := e.Close(); err != nil {
log.Warn("Error closing era1 file", "epoch", epoch, "err", err)
}
}
// Take care to close era1 files when they are evicted from cache.
db.cache.OnEvicted(closeEra)