triestate

package
v0.0.0-...-ada6850 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set struct {
	Accounts map[common.Address][]byte                 // Mutated account set, nil means the account was not present
	Storages map[common.Address]map[common.Hash][]byte // Mutated storage set, nil means the slot was not present
	// contains filtered or unexported fields
}

Set represents a collection of mutated states during a state transition. The value refers to the original content of state before the transition is made. Nil means that the state was not present previously.

func New

func New(accounts map[common.Address][]byte, storages map[common.Address]map[common.Hash][]byte) *Set

New constructs the state set with provided data.

func (*Set) Size

func (s *Set) Size() common.StorageSize

Size returns the approximate memory size occupied by the set.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL