good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit e46a01d5 authored by Péter Szilágyi's avatar Péter Szilágyi Committed by GitHub
Browse files

ethdb/memorydb: allow noop compact on memdb (#19907)

* ethdb/memorydb: allow noop compact on memdb

* ethdb/memorydb: fix comment type
parent 7f336259
No related branches found
No related tags found
No related merge requests found
......@@ -197,9 +197,10 @@ func (db *Database) Stat(property string) (string, error) {
return "", errors.New("unknown property")
}
// Compact is not supported on a memory database.
// Compact is not supported on a memory database, but there's no need either as
// a memory database doesn't waste space anyway.
func (db *Database) Compact(start []byte, limit []byte) error {
return errors.New("unsupported operation")
return nil
}
// Len returns the number of entries currently present in the memory database.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment