trie

package
v0.0.0-...-8aa4d74 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthDatabase

type EthDatabase struct {
	// contains filtered or unexported fields
}

func NewEthDatabase

func NewEthDatabase(ldb *storage.LevelDBBackend) *EthDatabase

func (*EthDatabase) BackEnd

func (db *EthDatabase) BackEnd() *storage.LevelDBBackend

func (*EthDatabase) Close

func (db *EthDatabase) Close()

func (*EthDatabase) Delete

func (db *EthDatabase) Delete(key []byte) error

func (*EthDatabase) Get

func (db *EthDatabase) Get(key []byte) ([]byte, error)

func (*EthDatabase) Has

func (db *EthDatabase) Has(key []byte) (bool, error)

func (*EthDatabase) NewBatch

func (db *EthDatabase) NewBatch() ethdb.Batch

func (*EthDatabase) Put

func (db *EthDatabase) Put(key []byte, value []byte) error

type Trie

type Trie struct {
	trie.Trie
	DB *trie.Database
}

func NewTrie

func NewTrie(root common.Hash, db *EthDatabase) *Trie

func (*Trie) CommitDB

func (t *Trie) CommitDB(root common.Hash) (err error)

Jump to

Keyboard shortcuts

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