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.
Click to show internal directories.
Click to hide internal directories.