core, ethdb, tests, trie: introduce database snapshot (#24486)
This commit is contained in:
@@ -475,9 +475,13 @@ func (l *loggingDb) NewBatchWithSize(size int) ethdb.Batch {
|
||||
}
|
||||
|
||||
func (l *loggingDb) NewIterator(prefix []byte, start []byte) ethdb.Iterator {
|
||||
fmt.Printf("NewIterator\n")
|
||||
return l.backend.NewIterator(prefix, start)
|
||||
}
|
||||
|
||||
func (l *loggingDb) NewSnapshot() (ethdb.Snapshot, error) {
|
||||
return l.backend.NewSnapshot()
|
||||
}
|
||||
|
||||
func (l *loggingDb) Stat(property string) (string, error) {
|
||||
return l.backend.Stat(property)
|
||||
}
|
||||
|
Reference in New Issue
Block a user