Documentation
¶
Index ¶
- func ExtractSnapshotUpdatePayload(opts ...SnapshotUpdateOption) interface{}
- func ExtractTrieDBUpdatePayload(opts ...TrieDBUpdateOption) (interface{}, interface{}, bool)
- func ShouldSkipStateKeyTransformation(opts ...StateDBStateOption) bool
- type Config
- type SnapshotUpdateOption
- type StateDBStateOption
- type TrieDBUpdateOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractSnapshotUpdatePayload ¶ added in v1.16.51
func ExtractSnapshotUpdatePayload(opts ...SnapshotUpdateOption) interface{}
ExtractSnapshotUpdatePayload extracts the payload from snapshot update options
func ExtractTrieDBUpdatePayload ¶ added in v1.16.51
func ExtractTrieDBUpdatePayload(opts ...TrieDBUpdateOption) (interface{}, interface{}, bool)
ExtractTrieDBUpdatePayload extracts the payload from trie DB update options
func ShouldSkipStateKeyTransformation ¶ added in v1.16.51
func ShouldSkipStateKeyTransformation(opts ...StateDBStateOption) bool
ShouldSkipStateKeyTransformation checks if any of the provided options indicates that state key transformation should be skipped.
Types ¶
type Config ¶
type Config struct {
// Pruning enables state pruning
Pruning bool
// SnapshotCache is the cache size for snapshots
SnapshotCache int
// OfflinePruning enables offline pruning
OfflinePruning bool
// StateSyncEnabled enables state sync
StateSyncEnabled bool
}
Config represents state configuration
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns the default state configuration
type SnapshotUpdateOption ¶ added in v1.16.51
type SnapshotUpdateOption interface{}
SnapshotUpdateOption is a placeholder for snapshot update options. This is implemented as an empty interface for now, but can be expanded to carry payloads as needed.
func WithSnapshotUpdatePayload ¶ added in v1.16.51
func WithSnapshotUpdatePayload(p interface{}) SnapshotUpdateOption
WithSnapshotUpdatePayload returns a SnapshotUpdateOption carrying an arbitrary payload
type StateDBStateOption ¶ added in v1.16.51
type StateDBStateOption interface{}
StateDBStateOption is a placeholder for state DB state options. This is used to pass options to state read/write operations.
func SkipStateKeyTransformation ¶ added in v1.16.51
func SkipStateKeyTransformation() StateDBStateOption
SkipStateKeyTransformation returns a StateDBStateOption that signals to skip state key transformation during state operations.
type TrieDBUpdateOption ¶ added in v1.16.51
type TrieDBUpdateOption interface{}
TrieDBUpdateOption is a placeholder for trie database update options. This is implemented as an empty interface for now, but can be expanded to carry payloads as needed.
func WithTrieDBUpdatePayload ¶ added in v1.16.51
func WithTrieDBUpdatePayload(parent interface{}, current interface{}) TrieDBUpdateOption
WithTrieDBUpdatePayload returns a TrieDBUpdateOption carrying two block hashes