We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f33625 commit e46a01dCopy full SHA for e46a01d
ethdb/memorydb/memorydb.go
@@ -197,9 +197,10 @@ func (db *Database) Stat(property string) (string, error) {
197
return "", errors.New("unknown property")
198
}
199
200
-// Compact is not supported on a memory database.
+// Compact is not supported on a memory database, but there's no need either as
201
+// a memory database doesn't waste space anyway.
202
func (db *Database) Compact(start []byte, limit []byte) error {
- return errors.New("unsupported operation")
203
+ return nil
204
205
206
// Len returns the number of entries currently present in the memory database.
0 commit comments