mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
fix
This commit is contained in:
parent
6f8293d272
commit
ef5015d498
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue