Documentation
¶
Overview ¶
Package stateconf configures state management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractSnapshotUpdatePayload ¶
func ExtractSnapshotUpdatePayload(opts ...SnapshotUpdateOption) interface{}
ExtractSnapshotUpdatePayload extracts the payload from snapshot update options
func ExtractTrieDBUpdatePayload ¶
ExtractTrieDBUpdatePayload extracts the payload from trie DB update options
Types ¶
type SnapshotUpdateOption ¶
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 ¶
func WithSnapshotUpdatePayload(p interface{}) SnapshotUpdateOption
WithSnapshotUpdatePayload returns a SnapshotUpdateOption carrying an arbitrary payload
type TrieDBUpdateOption ¶
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 ¶
func WithTrieDBUpdatePayload(parent common.Hash, current common.Hash) TrieDBUpdateOption
WithTrieDBUpdatePayload returns a TrieDBUpdateOption carrying two block hashes