core/txpool: repair the limbo Billy too on unclean shutdowns (#29451)

This commit is contained in:
Péter Szilágyi 2024-04-04 16:51:10 +03:00 committed by GitHub
parent a851e39cbe
commit e3bdd84e98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ func newLimbo(datadir string) (*limbo, error) {
fails = append(fails, id)
}
}
store, err := billy.Open(billy.Options{Path: datadir}, newSlotter(), index)
store, err := billy.Open(billy.Options{Path: datadir, Repair: true}, newSlotter(), index)
if err != nil {
return nil, err
}