types

package
v0.0.0-...-620b3f8 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tile

type Tile struct {
	Depth uint8         // The depth of the root node in trie
	Nodes uint16        // The node number in tile
	Refs  []common.Hash // The references from tile to external
}

tile represents the metadata of a chunk of state trie.

func (*Tile) DecodeRLP

func (t *Tile) DecodeRLP(s *rlp.Stream) error

DecodeRLP implements rlp.Decoder which loads the persisted fields of a tile from an RLP stream.

func (*Tile) EncodeRLP

func (t *Tile) EncodeRLP(w io.Writer) error

EncodeRLP implements rlp.Encoder which flattens all necessary fields into an RLP stream.

Jump to

Keyboard shortcuts

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