Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit

Permalink
rawdb: resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
huyngopt1994 committed Sep 18, 2024
1 parent 01c6d52 commit 06b47c6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions core/rawdb/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,6 @@ func NewDatabase(db ethdb.KeyValueStore) ethdb.Database {
return &nofreezedb{KeyValueStore: db}
}

// Tail returns an error as we don't have a backing chain freezer.
func (db *nofreezedb) Tail() (uint64, error) {
return 0, errNotSupported
}

// resolveChainFreezerDir is a helper function which resolves the absolute path
// of chain freezer by considering backward compatibility.
func resolveChainFreezerDir(ancient string) string {
Expand Down
6 changes: 0 additions & 6 deletions core/rawdb/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@ func (t *table) Ancients() (uint64, error) {
return t.db.Ancients()
}

// Tail is a noop passthrough that just forwards the request to the underlying
// database.
func (t *table) Tail() (uint64, error) {
return t.db.Tail()
}

// AncientSize is a noop passthrough that just forwards the request to the underlying
// database.
func (t *table) AncientSize(kind string) (uint64, error) {
Expand Down
4 changes: 0 additions & 4 deletions ethdb/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ type AncientReaderOp interface {
// Ancients returns the ancient item numbers in the ancient store.
Ancients() (uint64, error)

// Tail returns the number of first stored item in the ancient store.
// This number can also be interpreted as the total deleted items.
Tail() (uint64, error)

// AncientSize returns the ancient size of the specified category.
AncientSize(kind string) (uint64, error)

Expand Down

0 comments on commit 06b47c6

Please sign in to comment.