Update Go version and Fix Interface

This commit is contained in:
Abdul Rabbani
2022-05-27 13:50:59 -04:00
parent 2bc23f4deb
commit 950fb0802d
4 changed files with 23 additions and 26 deletions
+6 -1
View File
@@ -311,7 +311,7 @@ func (d *Database) AncientRange(kind string, start, count, maxBytes uint64) ([][
}
// ReadAncients applies the provided AncientReader function
func (d *Database) ReadAncients(fn func(ethdb.AncientReader) error) (err error) {
func (d *Database) ReadAncients(fn func(ethdb.AncientReaderOp) error) (err error) {
return errNotSupported
}
@@ -344,3 +344,8 @@ func (d *Database) MigrateTable(string, func([]byte) ([]byte, error)) error {
func (d *Database) NewSnapshot() (ethdb.Snapshot, error) {
return nil, errNotSupported
}
// AncientDatadir returns an error as we don't have a backing chain freezer.
func (d *Database) AncientDatadir() (string, error) {
return "", errNotSupported
}