This commit is contained in:
Sina Mahmoodi 2025-03-18 16:36:02 +01:00 committed by Felix Lange
parent 6f8293d272
commit ef5015d498

View file

@ -665,7 +665,7 @@ func pruneHistory(ctx *cli.Context) error {
// TODO(s1na): what if there is a crash between the two prune operations? // TODO(s1na): what if there is a crash between the two prune operations?
// Truncate everything up to merge block // Truncate everything up to merge block
if _, err := chaindb.TruncateTailBlocks(mergeBlock); err != nil { if _, err := chaindb.TruncateTail(mergeBlock); err != nil {
return fmt.Errorf("failed to truncate ancient data: %v", err) return fmt.Errorf("failed to truncate ancient data: %v", err)
} }