Skip to content

Commit f584b25

Browse files
committed
doc: temporary nature of state.SnapshotTree
1 parent 910d572 commit f584b25

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

core/state/statedb.libevm.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ import (
2525
)
2626

2727
// SnapshotTree mirrors the functionality of a [snapshot.Tree], allowing for
28-
// drop-in replacements.
28+
// drop-in replacements. This is intended as a temporary feature as a workaround
29+
// until a standard Tree can be used.
2930
type SnapshotTree interface {
3031
Cap(common.Hash, int) error
3132
Snapshot(common.Hash) snapshot.Snapshot

libevm/stateconf/conf.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ package stateconf
2020
import "github.com/ava-labs/libevm/libevm/options"
2121

2222
// A SnapshotUpdateOption configures the behaviour of
23-
// state.SnapshotTree.Update() implementations.
23+
// state.SnapshotTree.Update() implementations. This will be removed along with
24+
// state.SnapshotTree.
2425
type SnapshotUpdateOption = options.Option[snapshotUpdateConfig]
2526

2627
type snapshotUpdateConfig struct {

0 commit comments

Comments
 (0)